当前位置:网站首页>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
边栏推荐
猜你喜欢
随机推荐
Reverse thinking - short story
时变和非时变
2019-11-10训练总结
Text of the basic component of the shutter
Analyze in detail the PBOT mining virus family behavior and the principle of exploited vulnerabilities, and provide detailed protection suggestions for the blue army
Arc view and arc viewpager
Sixteen system counter and flow lamp
Rikka with Cake(线段树+线段树)
2019.11.20 training summary
Alibaba cloud firewall configuration, multiple settings (iptables and firewall)
单片机集成开发环境Keil5的使用
Codeforces Round #657 Div. 2
1099 Build A Binary Search Tree (30 分)
JNI. H description
Ce projet Open source est super wow, des photos manuscrites sont générées en ligne
Application of keil5 integrated development environment for single chip microcomputer
To 3 --- 最后的编程挑战
1146 Topological Order (25 分)
1021 deep root (25 points)
指针数组、数组指针和传参的相关问题








