Try setting C_INCLUDE_PATH
(for C header files) or CPLUS_INCLUDE_PATH
(for C++ header files).
As Ciro mentioned, CPATH
will set the path for both C and C++ (and any other language).
More details in GCC’s documentation.
More Related Contents:
- How can I add a default include path for GCC in Linux?
- Where are include files stored – Ubuntu Linux, GCC
- 32-bit absolute addresses no longer allowed in x86-64 Linux?
- How to keep environment variables when using sudo
- Where can I set environment variables that crontab will use?
- How to set the environmental variable LD_LIBRARY_PATH in linux
- how to install gcc 4.9.2 on RHEL 7.4
- ld cannot find an existing library
- How do I set the working directory of the parent process?
- How to permanently export a variable in Linux?
- Calling printf in x86_64 using GNU assembler
- Where is PATH_MAX defined in Linux?
- Linking OpenSSL libraries to a program
- What’s the difference between “statically linked” and “not a dynamic executable” from Linux ldd?
- Linux clock_gettime(CLOCK_MONOTONIC) strange non-monotonic behavior
- Make $JAVA_HOME easily changable in Ubuntu [closed]
- Can _start be the thumb function?
- How to change the default GCC compiler in Ubuntu?
- How to avoid STT_GNU_IFUNC symbols in your binary?
- How can I select a static library to be linked while ARM cross compiling?
- What is the ‘soname’ option for building shared libraries for?
- Number of executed Instructions different for Hello World program Nasm Assembly and C
- What is the maximum size of a Linux environment variable value?
- Is there a way to get gcc to output raw binary?
- Trying to understand gcc’s complicated stack-alignment at the top of main that copies the return address
- Difference between shell and environment variables
- Do I need -D_REENTRANT with -pthreads?
- undefined reference to symbol even when nm indicates that this symbol is present in the shared library
- How do I recover a semaphore when the process that decremented it to zero crashes?
- Responsibility of stack alignment in 32-bit x86 assembly