c或者C++编程过程中,include 的头文件在环境中的默认路径中,没有则要指定
头环境变量
export C_INCLUDE_PATH=c用的路径
export CPLUS_INCLUDE_PATH= c++用的路径、
export OBJC_INCLUDE_PATH=
.so文件
export LD_LIBRAY_PATH=、
vi /etc/ld.so.conf && /sbin/ldconfig
.a文件环境变量
export LIBRARY_PATH=
动态指定inlude路径
$ g++ test.cpp -I /usr/local/cuda/include
linux默认include路径是/usr/include