Questions tagged [include-path]

An include path is a set of directories that contain headers or library files that should be accessed with no prefixed directory. Include paths normally include the location of the standard library, locations of third party libraries, and locations of system headers.

897 questions
9
votes
1 answer

c_include_path vs ld_library_path

On either Ubunutu 12.04 or Springdale 6.4, using gcc and g++, what's the difference between C_INCLUDE_PATH (or CPLUS_INCLUDE_PATH) and LD_LIBRARY_PATH? Is the LD one only used at run-time, and the other two only at compile-time? Since the INCLUDE…
tsbertalan
  • 1,453
  • 1
  • 21
  • 30
9
votes
1 answer

How might one specify or add a directory to the Python.h search path during a module build/install using setup.py?

I'm running Linux, and have downloaded a python module I must install without access to any but my particular /home/user directory (I have no root privileges nor the option to pursue them). This of course requires the Python source. This I've…
ca2longoria
  • 362
  • 1
  • 3
  • 12
8
votes
1 answer

How to auto add dependent projects to include path in Visual Studio

So I've always had to use the project's "Additional Include Directories" property to set relative paths to other (library) projects that I'm dependent on for a given solution. So the solution structure is essentially: My App.sln -> My App.vcxproj ->…
Mordachai
  • 9,412
  • 6
  • 60
  • 112
8
votes
1 answer

Visual Studio adding truly "global" default include path

Is there a simple way to add a path, globally (i.e. for all users on a machine), to the set of include/library directories in Visual Studio? What I am looking for is the ability to safely add an include/library path to Visual Studio for all projects…
Antonio Sanchez
  • 346
  • 4
  • 7
8
votes
2 answers

How to specify path to `.pxd` file in Cython

My project has the following directory structure: . ├── Makefile ├── pxd ├── pyx │   ├── Landscaping.pyx │   ├── Shrubbing.pxd │   └── Shrubbing.pyx └── setup.py However, if I move Shrubbing.pxd anywhere else, say, into pxd/, I get the following…
ethanabrooks
  • 747
  • 8
  • 19
7
votes
1 answer

Eclipse CDT indexing not working to find declarations within the project

I have installed Eclipse & CDT plugin on newly installed Ubuntu. The indexing is set to "Fast indexing" which is recommended ("Full Indexing" seems to have marginal difference). At so many places, if I press 'F3' ('show declaration') on any class…
iammilind
  • 68,093
  • 33
  • 169
  • 336
7
votes
5 answers

includePath in c_cpp_properties.json not working in VSCode for C

I'm working in VSCode with the C/C++ extension on Ubuntu 18.04. I'm trying to include gmodule.h and it raises the error gmodule.h: No such file or directory on line 2, character 10 of the main file. So, the problem lies with gmodule.h being not in…
Kelvin Bouma
  • 179
  • 1
  • 2
  • 12
7
votes
1 answer

vim image placement

For the last few days I've been forcing myself to switch from Textmate to Vim. for the most part, my efficiency is pretty much the same after some heavy Vim configuration. one aspect of my workflow I haven't found a replacement for is the drag and…
Matt Ryan
  • 1,717
  • 2
  • 20
  • 30
7
votes
2 answers

Set include-path for header only library installed with conda

I was recently advised to check out conda as a package manager. Unfortunately I don't succeed in finding how to make my compiler find a header-only library installed with conda? Ideally I would like to not having to manually specify a path to my…
Tom de Geus
  • 5,625
  • 2
  • 33
  • 77
7
votes
3 answers

Proper way to set PHP include path for *Nix and Windows

Is this the proper way to define an include path for both *nix and Windows? define( 'INCPATH', realpath( dirname( __FILE__ ) ) . '/' ); Note the trailing forward-slash I included above. Is the forward-slash for includes/requires the same for both…
Jeff
  • 5,962
  • 16
  • 49
  • 81
7
votes
4 answers

Set numerous include paths?

I know how to set an include path: set_include_path('/path'); But how can I set multiple include paths? For example: in two different directories.
Richard Knop
  • 81,041
  • 149
  • 392
  • 552
6
votes
3 answers

How to set include paths within Windows Subsystem for Linux in Visual Studio Code

at the moment I am using a windows machine and wanted to try out windows subsystem for linux(wsl) for c++ development. Visual studio code(vsc) provides a neat extension for working on the subsystem that works quite well. One thing I could not get to…
6
votes
2 answers

Xcode: SRCROOT not working even though paths seem to exist

I am receiving "file not found" errors when compiling in Xcode. My paths are specified relative to $SRCROOT and seem to be correctly identified. What's the problem?
snibbe
  • 2,715
  • 1
  • 27
  • 34
6
votes
1 answer

How can I determine where the include paths are coming from?

I'm familiar with the trick of adding -v to the Clang compile command line to see the include search path order, but that just shows which directories are being searched. It doesn't show why those directories are being searched. Is there some option…
R.M.
  • 3,461
  • 1
  • 21
  • 41
6
votes
0 answers

Compiler fails to search "/usr/local/include" after updating to macOS Mojave

After updating to macOS Mojave, the the OS fails to search for headers in /usr/local/include when compiling with clang++ (from the command-line, i.e. outside Xcode). Note that /usr/local/include is for my system the default paths in which CMake…
Tom de Geus
  • 5,625
  • 2
  • 33
  • 77