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!
|
|