当前位置:网站首页>2020-09-21 visual studio header file and Library Directory configuration
2020-09-21 visual studio header file and Library Directory configuration
2022-06-29 10:19:00 【qqq2018】
Contains the directory 、 The library catalog 、 Attach include directory 、 Additional Library Directory 、 Additional dependencies distinguish
project -> attribute :
VC++ Catalog :( The change is global )
Contains the directory : seek #include<xxxx.h> Medium xxxx.h Search directory for
The library catalog : seek .lib Search directory for files
C/C++( What is changed is the configuration of the project )
-> routine
Attach include directory : seek #include<xxxx.h> Medium xxxx.h Search directory for .
-> The linker :
routine : Additional Library Directory : seek .lib File directory
-> Input : Additional dependency : A single lib The library files (C++ The library will put the function 、 The declaration of the class is placed in *.h in , Put the implementation in *.cpp or *.cc in . After the compilation ,.cpp,.cc,*.c It's going to be packaged into a .lib file , This protects the source code )
To use a library , Except for include Outside the header file ( Attach include directory ), And in the process of linking lib( Static library ) add ( Additional Library Directory 、 Additional dependency ).(header only Just add an additional include directory to the library )
When you need to add... To the project .dll( Dynamic link library ) when , Directly add what needs to be added .dll Drag and drop the file to the file generated by the project .exe Under the folder you are in ( project -> attribute -> Configuration properties -> routine -> The output directory , You can see .exe Which directory is generated in )
Static library : Not after compilation (windows:.lib,linux:.a)
Dynamic library : Finished compiling , It should be used dynamically during execution (windows:.dll,linux:.so)share object
边栏推荐
- SymPy Tutorial(译)
- 子串分值-超详细版——最后的编程挑战
- 2019.11.20 training summary
- Weight recursion of complete binary tree -- the last programming challenge
- 完全二叉树的权值 递归做法 ——最后的编程挑战
- Codeforces Round #652 (Div. 2)
- 2019-11-10 training summary
- Pipeline details of IPC (interprocess communication)
- Flutter 基础组件之 Text
- Codeforces - 1151b thinking
猜你喜欢

点在多边形内外的判断

Seaweedfs security configuration

云主机端口扫描

PGP在加密技术中的应用

Slide the custom control to close the activity control

Dynamic linking of virtual machine stack of JVM

Rikka with cake (segment tree + segment tree)

Time varying and non time varying

GridView of basic component of shutter

基辅周边的凄美废墟——切尔诺贝利的安全前往指南!
随机推荐
Picture verification code control
Analysis of liferayportal jsonws deserialization vulnerability (cve-2020-7961)
nacos注册中心集群
L2-025 divide and rule (25 points)
弧形 View 和弧形 ViewPager
图片验证码控件
1098 insertion or heap sort (25 points)
Alibaba cloud firewall configuration, multiple settings (iptables and firewall)
2021年团体程序设计天梯赛-模拟赛
2019.10.6训练总结
JVM method return address
Simulation problem of two stacks
Pointer functions and function pointers
Analyze in detail the PBOT mining virus family behavior and the principle of exploited vulnerabilities, and provide detailed protection suggestions for the blue army
Is flush stock trading software reliable and safe?
Symphony tutorial
Codeforces Round #641 Div2
Codeforces Round #659 (Div. 2)
Codeforces Round #657 Div. 2
Codeforces Round #659 (Div. 2)