当前位置:网站首页>GCC:头文件和库文件的路径
GCC:头文件和库文件的路径
2022-08-05 00:41:00 【风静如云】
GCC有以下几个环境变量用于指定头文件和库文件的路径:
C_INCLUDE_PATH:用于指定C的头文件路径
CPLUS_INCLUDE_PATH:用于指定C++的头文件路径
LD_LIBRARY_PATH:用于指定运行时,库文件的路径(优先级要高于系统默认的查找路径)
LIBRARY_PATH:用于指定编译时,库文件的路径
如需修改这几个环境变量可以通过以下几种方法:
1.直接在命令行里输入(仅一次有效,终端关闭后失效),如:
export C_INCLUDE_PATH=XXXX:$C_INCLUDE_PATH
2.修改/etc/profile中完成(对所有用户生效),如:
export C_INCLUDE_PATH=XXXX:$C_INCLUDE_PATH
3.修改~/.bashrc(对当前用户生效),如:
export C_INCLUDE_PATH=XXXX:$C_INCLUDE_PATH
另外可以在编译时指定路径:
-I XXX:指定头文件路径
-L XXX:指定静态/动态库路径(编译时)
边栏推荐
- 软件测试面试题:LoadRunner 分为哪三个模块?
- Software testing interview questions: What are the strategies for system testing?
- 主库预警日志报错ORA-00270
- leetcode: 269. The Martian Dictionary
- tiup update
- D - I Hate Non-integer Number (选数的计数dp
- MAUI Blazor 权限经验分享 (定位,使用相机)
- tiup uninstall
- ARC129E Yet Another Minimization 题解 【网络流笔记】
- Software Testing Interview Questions: What Are the Types of Software Testing?
猜你喜欢

could not build server_names_hash, you should increase server_names_hash_bucket_size: 32

QSunSync Qiniu cloud file synchronization tool, batch upload

电赛必备技能___定时ADC+DMA+串口通信

元宇宙:未来我们的每一个日常行为是否都能成为赚钱工具?

软件基础的理论

matlab中rcosdesign函数升余弦滚降成型滤波器

After the staged testing is complete, have you performed defect analysis?

Mysql_14 存储引擎

could not build server_names_hash, you should increase server_names_hash_bucket_size: 32

oracle创建用户以后的权限问题
随机推荐
2022杭电多校第三场 K题 Taxi
软件测试面试题:您以往所从事的软件测试工作中,是否使用了一些工具来进行软件缺陷(Bug)的管理?如果有,请结合该工具描述软件缺陷(Bug)跟踪管理的流程?
OPENWIFI实践1:下载并编译SDRPi的HDL源码
oracle创建用户
Software testing interview questions: What are the three modules of LoadRunner?
2022杭电多校第三场 L题 Two Permutations
【unity编译器扩展之模型动画拷贝】
Software testing interview questions: What are the seven-layer network protocols?
tiup update
Software Testing Interview Questions: What Are the Types of Software Testing?
Pytorch usage and tricks
2022 The Third J Question Journey
ora-01105 ora-03175
MBps与Mbps区别
MongoDB construction and basic operations
leetcode: 266. All Palindromic Permutations
leetcode: 267. Palindromic permutations II
软件测试面试题:请你分别画出 OSI 的七层网络结构图和 TCP/IP 的四层结构图?
E - Distance Sequence (prefix and optimized dp
二叉树[全解](C语言)