export CPATH=/new/include/path:$CPATH export C_INCLUDE_PATH=/new/include/path:$C_INCLUDE_PATH export CPLUS_INCLUDE_PATH=/new/include/path:$CPLUS_INCLUDE_PATH 4. 添加或修改编译器配置 对于更持久的修改,你可以直接在编译器的配置文件中添加include路径。这通常涉及到编辑编译器的specs文件或创建自...
export CPLUS_INCLUDE_PATH #找到动态链接库的路径 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/MyLib export LD_LIBRARY_PATH #找到静态库的路径 LIBRARY_PATH=$LIBRARY_PATH:/MyLib export LIBRARY_PATH window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"...
对于C语言: C_INCLUDE_PATH=/usr/include:/usr/local/include:/tmp export C_INCLUDE_PATH 对于C++语言: CPLUS_INCLUDE_PATH=/usr/include:/usr/local/include:/tmp export CPLUS_INCLUDE_PATH CPATH环境变量同时支持C语言和C++语言,并且优先级高于以上2个环境变量。 方法2:通过命令行添加 使用命令行添加,home...