当前位置:网站首页>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
边栏推荐
猜你喜欢
随机推荐
2020-9-14 introduction to advertising system
2019.11.20 training summary
We can't tell the difference between distributed and cluster. Let's tell the story of two cooks cooking
1146 Topological Order (25 分)
這個開源項目超哇塞,手寫照片在線生成
Download control 1 of custom control (downloadview1)
Ural1517 freedom of choice [suffix array: longest common continuous substring]
2019.11.3学习总结
L2-026 小字辈 (25 分)
Judgment of points inside and outside polygon
Codeforces Round #652 (Div. 2)
山科 的C语言2018练习题(电信)
【51nod 1215】数组的宽度
Recyclerview sticky (suspended) head
走迷宫 bfs 中等+——最后的编程挑战
Minorgc, majorgc, fullgc
F5 big IP Icontrol rest command execution (cve-2022-1388)
HDU 4578 Transformation(线段树+有技巧的懒标记下放)
This open source project is super wow, and handwritten photos are generated Online
[51nod 1215] array width








