GCC环境变量设置

1.gcc/g++等程序本身的路径

export PATH=$PATH:/install/bin

注:/install为安装目录,下同

2.gcc头文件路径

export C_INCLUDE_PATH=$C_INCLUDE_PATH:/install/include

3.g++头文件路径

export CPLUS_INCLUDE_PATH=$CPLUS_INCLUDE_PATH:/install/include

4.动态链接库路径

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/install/lib64

5.静态库路径

export LIBRARY_PATH=$LIBRARY_PATH:/install/lib

你可能感兴趣的:(最爱Linux)