Sunday, December 11, 2011

setting c include path

How to set the 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:

 

No comments:

Post a Comment