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

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