当前位置:网站首页>2020-09-21 Visual Studio头文件和库目录配置
2020-09-21 Visual Studio头文件和库目录配置
2022-06-29 09:10:00 【qqq2018】
包含目录、库目录、附加包含目录、附加库目录、附加依赖项区别
项目->属性:
VC++目录:(改的是系统全局的)
包含目录:寻找#include<xxxx.h>中的xxxx.h的搜索目录
库目录:寻找.lib文件的搜索目录
C/C++(改的是本工程的配置)
->常规
附加包含目录:寻找#include<xxxx.h>中的xxxx.h的搜索目录。
->链接器:
常规:附加库目录:寻找.lib文件的目录
->输入:附加依赖项:单个的lib库文件(C++的库会把函数、类的声明放在*.h中,实现放在*.cpp或*.cc中。编译之后,.cpp,.cc,*.c会被打包成一个.lib文件,这样可以保护源代码)
要使用一个库,除了要include其头文件以外(附加包含目录),还要在链接过程中把lib(静态库)加进去(附加库目录、附加依赖项)。(header only的库只添加附加包含目录就可以了)
当需要向项目中添加.dll(动态链接库)时,直接将需要添加的.dll文件拖拽到项目生成的.exe所在的文件夹下即可(项目->属性->配置属性->常规->输出目录,可以看到.exe生成在哪个目录下)
静态库:编译完成后就不用了(windows:.lib,linux:.a)
动态库:编译完,执行的时候还要动态的使用(windows:.dll,linux:.so)share object
边栏推荐
- Yotact real-time instance segmentation
- 数据治理:元数据管理(第二篇)
- 数据治理:数据治理在数据中台下的解决方案
- IDEA调试失败,报JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_LOAD(196)
- Gross Tumor Volume Segmentation for Head and Neck Cancer Radiotherapy using Deep Dense Multi-modalit
- SPI drive of lsm6dsl
- Basic operations of MAC MySQL database
- Go deep into RC, RS, daemonset and statefulset (VII)
- Introduction to Chang'an chain data storage and construction of MySQL storage environment
- Print service IP setting scheme
猜你喜欢

LSM6DSL之SPI驱动

Print service IP setting scheme

【华为认证】HCIA-DATACOM史上最全精选题库(附答案解析)

Hystrix熔断器:服务熔断与服务降级

Generic paging framework

Deep Learning-based Automated Delineation of Head and Neck Malignant Lesions from PET Images

Fabrication d'une calculatrice d'addition simple basée sur pyqt5 et Qt Designer
![[Huawei certification] the most complete and selected question bank in hcia-datacom history (with answer analysis)](/img/d4/f5ea847573433f7ca7bd429f57e40a.png)
[Huawei certification] the most complete and selected question bank in hcia-datacom history (with answer analysis)

基於PyQt5和Qt Designer的簡易加法計算器的制作

转载 :判断对象是否具有属性的5种方法
随机推荐
IDEA自动补全
Kicad learning notes - shortcut keys
Easyexcl export 1million lines of EXECL report font error solution
券商经理给的开户二维码办理股票开户安全吗?我想开个户
1424. 对角线遍历 II
Western Polytechnic University, one of the "seven national defense schools", was attacked by overseas networks
MySQL modify auto increment initial value
The former security director of Uber faced fraud allegations and concealed the data leakage event
Gross Tumor Volume Segmentation for Head and Neck Cancer Radiotherapy using Deep Dense Multi-modalit
The 23 most useful elasticsearch search techniques you must know
1.4 regression of machine learning methods
Chang'an chain go language smart contract writing and compilation
通识篇:原型设计的认知,设计及最佳实践
UE4 compile a single file (VS and editor start respectively)
A comparison of methods for fully automatic segmentation of tumors and involved nodes in PET/CT of h
Hystrix熔断器:服务熔断与服务降级
自定义mvc框架实现
监控数据源连接池使用情况
通用分页框架
官方stm32芯片包下载地址 stm32f10x stm32f40x下载