Monday, December 12, 2011

cplus_include_path linux

CPLUS_INCLUDE_PATH in Linux

Additional directories can be added to the include path using the environment variable C_INCLUDE_PATH (for C header files) or CPLUS_INCLUDE_PATH (for C++ header files). For example, the following commands will add ‘/opt/3rd-Apps/include’ to the include path when compiling C programs: 

$ CPLUS_INCLUDE_PATH=/opt/3rd-Apps/include
$ export CPLUS_INCLUDE_PATH

Example:
How to set the CPLUS_INCLUDE_PATH


2 comments: