Saturday, December 10, 2011

c_include_path linux

C_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: 

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

Example:

How to set the C_INCLUDE_PATH
 
 

No comments:

Post a Comment