How do I include a path to libraries in g++

To specify a directory to search for (binary) libraries, you just use -L: To specify the actual library name, you use -l: To specify a directory to search for include files (different from libraries!) you use -I: So I think what you want is something like These compiler flags (amongst others) can also be found at the GNU GCC Command … Read more

Windows path in Python

you can use always: this works both in linux and windows. Other posibility is if you have problems with some names you can also try raw string literals: however best practice is to use the os.path module functions that always select the correct configuration for your OS: From python 3.4 you can also use the … Read more

npm ERR! No git binary found in $PATH

I can’t seem to get zenbot to install I am new to node.js, so please be kind. I am getting all kinds of error I do have git installed. I followed the install instructions and I really don’t know where to start. I am a Java and C programming trying to cut my teeth on … Read more

python is not recognized windows 10

Make sure the path is in your System PATH variable and not in a User PATH variable. After adding the path to the PATH variable, make sure you close and re-open any command prompts so they use the updated PATH. You should also confirm the path by checking python directly from the folder. The example … Read more

How to change the Jupyter start-up folder

Jupyter Notebook and JupyterLab < 3.0 For old Jupyter Notebook interface installed with notebook package and run as jupyter notebook (see the next section for the identical interface installed with nbclassic and run with jupyter nbclassic, and for JupyterLab): Open cmd (or Anaconda Prompt) and run jupyter notebook –generate-config. This writes a file to C:\Users\username\.jupyter\jupyter_notebook_config.py. Browse to the file location and open it in an Editor Search … Read more

Path to Powershell.exe (v 2.0)

I believe it’s in C:\Windows\System32\WindowsPowershell\v1.0\. In order to confuse the innocent, MS kept it in a directory labeled “v1.0”. Running this on Windows 7 and checking the version number via $Host.Version (Determine installed PowerShell version) shows it’s 2.0. Another option is type $PSVersionTable at the command prompt. If you are running v2.0, the output will be: If you’re running version … Read more

What does __FILE__ mean?

The realpath() function gives you the file-system path, with any symbolic links and directory traversing (e.g. ../../) resolved. The dirname() function gives you just the directory, not the file within it. __FILE__ is a magic constant that gives you the filesystem path to the current .php file (the one that __FILE__ is in, not the one it’s included by if it’s an … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)