当前位置:网站首页>g++ parameter description
g++ parameter description
2022-08-03 06:11:00 【Shiyu】
-I (capital i)
Function: Find header files.The search order is -I{path}->/usr/include->usr/local/include
g++ main.cpp -o main -I /home/linyu/include/
-l (lowercase l)
Role: Specify the library to be linked by the program, followed by the library name.The search order is -I{path}->/usr/lib->usr/local/lib
Example: The library name of the math library is m, and his library file name is libm.so.Note that the dynamic library is linked first, followed by the static library.
g++ main.cpp -o main -lzmq
-L(uppercase L)
Libraries placed in /lib, /usr/lib and /usr/local/lib can be linked directly with the -l (lowercase l) parameter, but if the library files are not placed in these three directories, andIf it is placed in another directory, then if we only use the -l parameter, the link will still go wrong. For example, if we put libm.so in the /aaa/bbb/ccc directory, the link parameter is -L /aaa/bbb/ccc -lm
g++ main.cpp -o main -L /aaa/bbb/ccc -lm
-g
Function: to generate debugging information, the program can be debugged by the debugger.
g++ -g main.cpp -o main
边栏推荐
- 001_旭日X3派初探:开箱测试
- ZEMAX | 如何使用渐晕系数
- memblock
- 自监督论文阅读笔记 S3Net:Self-supervised Self-ensembling Network for Semi-supervised RGB-D Salient Object Det
- 自监督论文阅读笔记Efficient Self-supervised Vision Pretraining with Local Masked Reconstruction
- 八、抽象类的接口的区别
- 全球一流医疗技术公司如何最大程度提高设计工作效率 | SOLIDWORKS 产品探索
- 深度学习理论课程第八、九、十章总结
- c#,.net 下载文件 设置断点
- MMU 介绍-[TBL/page table work]
猜你喜欢

自我监督学习和BERT模型

深度学习基本概念

ZEMAX | 如何倾斜和偏心序列光学元件

梯度下降、反向传播

自监督论文阅读笔记 Self-supervised Label Augmentation via Input Transformations

自监督论文阅读笔记 SimCLRV2 Big Self-Supervised Models are Strong Semi-Supervised Learners

内网渗透信息收集

自监督论文阅读笔记Reading and Writing: Discriminative and Generative Modelingfor Self-Supervised Text Recogn

采用Trench肖特基二极管,实现功率密度的显著提升
ASP.NET MVC3的伪静态实现
随机推荐
MySql【后面附有练习题】
自监督论文阅读笔记 Ship Detection in Sentinel 2 Multi-Spectral Images with Self-Supervised Learning
电子元器件和电子元件的区别有那些?
深度学习基本概念
【第二周】卷积神经网络
自监督论文阅读笔记Index Your Position: A Novel Self-Supervised Learning Method for Remote Sensing Images Sema
JSP的基本使用
Practice of MySql's Sql statement (try how many you can write)
MATLAB给多组条形图添加误差棒
对象の使用
A.1#【内存管理】——1.1.4 node: 初始化
东南亚跨境电商
ZEMAX | 在OpticStudio中建立扩增实境(VR)头戴式显示器
借助ginput函数在figure窗口实时读取、展示多条曲线的坐标值
梯度下降、反向传播
Typora
优雅的拦截TabLayout的点击事件
c#,.net 下载文件 设置断点
MMU 介绍-[TBL/page table work]
自监督论文阅读笔记 TASK-RELATED SELF-SUPERVISED LEARNING FOR REMOTE SENSING IMAGE CHANGE DETECTION