由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - should the .dll and .lib have the same name?
相关主题
Listing files under a directory in C++请教,关于g++ -l的问题
请教一个弱弱问题,关于#include的pathnamea PERL opendir/readdir question
sdk那个register directories with vs有什么用?windows 7 file chooser 的问题
how to check the value of $(IntDir) in visual stdiolinux, find command question
吐槽MS Visual StudioQt Creator
How to fix this? /bin/ls: Argument list too long*** help needed! on MATLAB GUI ***
how to include header file in other directory?what's wrong with this scripts?variable passing?
How to link math library in VC2005?cgi测试newbee问题
相关话题的讨论汇总
话题: lib话题: dll话题: additional话题: should话题: linker
进入Programming版参与讨论
1 (共1页)
s**********r
发帖数: 340
1
In Visual Studio 2005, I should set C/C++ -> General -> additional include
directories with the "include" directory for the .h files. I also have to
set the Linker -> General -> additional library depedencies with the "lib"
directory. Right?
How did the compiler know where to find the .dll files? What's the .lib file
for? .dll and .lib could have different names?
When should I explicit set the Linker -> Input -> Additional Dependencies
with some .lib files?
Any information is welcome!
l***g
发帖数: 1035
2
two ways to link with dll. you are talking about link time load, which gener
ates the .lib together with .dll with same name. the xx.lib is called export
library which contains only 'bridge' information. you need to link to this
.lib during build (but not require the presence of dll). During runtime, if
the same name dll is on the path, it will be picked up.

file

【在 s**********r 的大作中提到】
: In Visual Studio 2005, I should set C/C++ -> General -> additional include
: directories with the "include" directory for the .h files. I also have to
: set the Linker -> General -> additional library depedencies with the "lib"
: directory. Right?
: How did the compiler know where to find the .dll files? What's the .lib file
: for? .dll and .lib could have different names?
: When should I explicit set the Linker -> Input -> Additional Dependencies
: with some .lib files?
: Any information is welcome!

1 (共1页)
进入Programming版参与讨论
相关主题
cgi测试newbee问题吐槽MS Visual Studio
remove a module from cvsHow to fix this? /bin/ls: Argument list too long
新手弱问:怎么让VC记住新添加的库文件?how to include header file in other directory?
请教如何在VC6下面安装gsl?How to link math library in VC2005?
Listing files under a directory in C++请教,关于g++ -l的问题
请教一个弱弱问题,关于#include的pathnamea PERL opendir/readdir question
sdk那个register directories with vs有什么用?windows 7 file chooser 的问题
how to check the value of $(IntDir) in visual stdiolinux, find command question
相关话题的讨论汇总
话题: lib话题: dll话题: additional话题: should话题: linker