views:

99

answers:

2

Easy points for someone with Visual Studio C++ experience:

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: cannot read at 0xABC

Where do dynamically-linked dependencies go?

+2  A: 

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.

Troubadour
+2  A: 

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

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

Ben Burnett