当前位置:网站首页>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)
边栏推荐
猜你喜欢

node使用redis

JUC thread pool (1): FutureTask use

金九银十面试跳槽季;你准备好了吗?

Countdown to 1 day!From August 2nd to 4th, I will talk with you about open source and employment!

oracle create tablespace

软件基础的理论

Matlab uses plotting method for data simulation and simulation

JUC线程池(一): FutureTask使用

OPENWIFI实践1:下载并编译SDRPi的HDL源码

leetcode:266. 回文全排列
随机推荐
E - Many Operations (按位考虑 + dp思想记录操作后的结果
ORA-01105 ORA-03175
If capturable=False, state_steps should not be CUDA tensors
leetcode: 266. All Palindromic Permutations
The method of freely controlling concurrency in the sync package in GO
2022牛客多校训练第二场 L题 Link with Level Editor I
About I double-checked and reviewed the About staff page, returning an industry question
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?
gorm joint table query - actual combat
Inter-process communication and inter-thread communication
leetcode:266. 回文全排列
CNI(Container Network Plugin)
2022 Hangzhou Electric Power Multi-School Session 3 Question B Boss Rush
软件测试面试题:负载测试、容量测试、强度测试的区别?
软件测试面试题:您以往所从事的软件测试工作中,是否使用了一些工具来进行软件缺陷(Bug)的管理?如果有,请结合该工具描述软件缺陷(Bug)跟踪管理的流程?
僵尸进程和孤儿进程
oracle create user
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
Helm Chart
2022牛客多校第三场 J题 Journey