Wednesday, December 14, 2011

setting cplus_include_path

How to set the CPLUS_INCLUDE_PATH

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:



No comments:

Post a Comment