当前位置:网站首页>GCC: paths to header and library files
GCC: paths to header and library files
2022-08-05 00:45:00 【calm as a cloud】
GCC has the following environment variables for specifying paths to header and library files:
C_INCLUDE_PATH: specifies the C header file path
CPLUS_INCLUDE_PATH: used to specify the C++ header file path
LD_LIBRARY_PATH: used to specify the path of the library file at runtime (the priority is higher than the default search path of the system)
LIBRARY_PATH: used to specify the path to the library file when compiling
If you need to modify these environment variables, you can use the following methods:
1. Input directly in the command line (only valid once, invalid after the terminal is closed), such as:
export C_INCLUDE_PATH=XXXX:$C_INCLUDE_PATH
2. Complete the modification in /etc/profile (effective for all users), such as:
export C_INCLUDE_PATH=XXXX:$C_INCLUDE_PATH
3. Modify ~/.bashrc (effective for the current user), such as:
export C_INCLUDE_PATH=XXXX:$C_INCLUDE_PATH
Alternatively, you can specify the path at compile time:
-I XXX: specify the path to the header file
-L XXX: specify static/dynamic library path (compile time)
边栏推荐
- 内存取证系列1
- leetcode: 269. The Martian Dictionary
- 软件测试面试题:软件验收测试的合格通过准则?
- If capturable=False, state_steps should not be CUDA tensors
- tiup update
- OPENWIFI实践1:下载并编译SDRPi的HDL源码
- Software Testing Interview Questions: What is Software Testing?The purpose and principle of software testing?
- Software testing interview questions: What are the three modules of LoadRunner?
- 活动推荐 | 快手StreamLake品牌发布会,8月10日一起见证!
- 2022杭电多校训练第三场 1009 Package Delivery
猜你喜欢
[idea] idea configures sql formatting
[230]连接Redis后执行命令错误 MISCONF Redis is configured to save RDB snapshots
5.PCIe官方示例
TinyMCE disable escape
JVM类加载简介
JUC thread pool (1): FutureTask use
gorm joint table query - actual combat
2022 Hangzhou Electric Power Multi-School Session 3 K Question Taxi
活动推荐 | 快手StreamLake品牌发布会,8月10日一起见证!
DHCP的工作过程
随机推荐
Software Testing Interview Questions: What is Software Testing?The purpose and principle of software testing?
Software Testing Interview Questions: What do you think about software process improvement? Is there something that needs improvement in the enterprise you have worked for? What do you expect the idea
软件测试面试题:LoadRunner 分为哪三个模块?
GCC:屏蔽动态库之间的依赖
redis可视化管理软件Redis Desktop Manager2022
2022 Hangzhou Electric Power Multi-School Session 3 K Question Taxi
BC(转)[js]js计算两个时间相差天数
tiup update
软件测试面试题:BIOS, Fat, IDE, Sata, SCSI, Ntfs windows NT?
GCC:头文件和库文件的路径
活动推荐 | 快手StreamLake品牌发布会,8月10日一起见证!
### Error querying database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionExcep
2022杭电多校第一场 1004 Ball
DHCP的工作过程
2022牛客多校训练第二场 L题 Link with Level Editor I
[230] Execute command error after connecting to Redis MISCONF Redis is configured to save RDB snapshots
NMS原理及其代码实现
ora-01105 ora-03175
Inter-process communication and inter-thread communication
软件测试面试题:设计测试用例时应该考虑哪些方面,即不同的测试用例针对那些方面进行测试?