开发者

Where do I input DLL dependencies in Visual Studio C++ project?

开发者 https://www.devze.com 2023-01-01 22:22 出处:网络
I am converting some Qt project files (.pro)that run on Linux and Mac into Visual Studio project files (.vcproj) The Qt Visual Studio add-in converted everything fine except the DLL dependencies. Wher

I am converting some Qt project files (.pro) that run on Linux and Mac into Visual Studio project files (.vcproj) The Qt Visual Studio add-in converted everything fine except the DLL dependencies. Where do I put these in Visual Studio 2008?

If I put the DLLs in Configuration Properties > Linker > Input > Additional Dependencies, I get:

fatal error LNK1107: invalid or corrupt file: ca开发者_Python百科nnot read at 0xABC

Where do dynamically-linked dependencies go?


Project Properties -> Linker -> Input -> Additional Dependencies

In that field put xxxx.lib for whatever library you need.


You might want to check what’s the differences between .dll , .lib, .h files ?.

You need to specify the corresponding .lib file at link time. not the dll.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号