当前位置:网站首页>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)
边栏推荐
- 2022牛客多校训练第二场 H题 Take the Elevator
- [FreeRTOS] FreeRTOS and stm32 built-in stack occupancy
- Software Testing Interview Questions: What Are the Types of Software Testing?
- About I double-checked and reviewed the About staff page, returning an industry question
- 软件测试面试题:您如何看待软件过程改进?在您曾经工作过的企业中,是否有一些需要改进的东西呢?您期望的理想的测试人员的工作环境是怎样的?
- 动态规划/背包问题总结/小结——01背包、完全背包
- Zombie and orphan processes
- Software testing interview questions: test life cycle, the test process is divided into several stages, and the meaning of each stage and the method used?
- 软件测试面试题:LoadRunner 分为哪三个模块?
- 关于我仔细检查审核过关于工作人员页面,返回一个所属行业问题
猜你喜欢
随机推荐
BC(转)[js]js计算两个时间相差天数
软件测试面试题:您以往所从事的软件测试工作中,是否使用了一些工具来进行软件缺陷(Bug)的管理?如果有,请结合该工具描述软件缺陷(Bug)跟踪管理的流程?
2022 Hangzhou Electric Power Multi-School Session 3 K Question Taxi
软件测试面试题:请你分别画出 OSI 的七层网络结构图和 TCP/IP 的四层结构图?
oracle create tablespace
Theory of Software Fundamentals
软件测试面试题:测试生命周期,测试过程分为几个阶段,以及各阶段的含义及使用的方法?
GCC: Shield dependencies between dynamic libraries
Software Testing Interview Questions: What Are the Types of Software Testing?
软件基础的理论
Software testing interview questions: test life cycle, the test process is divided into several stages, and the meaning of each stage and the method used?
tiup uninstall
软件测试面试题:LoadRunner 分为哪三个模块?
软件测试面试题:软件都有多少种分类?
[idea] idea configures sql formatting
5.PCIe官方示例
SV class virtual method of polymorphism
D - I Hate Non-integer Number (选数的计数dp
Software testing interview questions: How many types of software are there?
软件测试面试题:关于自动化测试工具?