Ralph Friedman
Ralph Friedman

Reputation: 21

Visual C++ 2010: How do I tell the compiler that it requires a specific DLL?

As stated in the subject. I am a newbie at VC++/Visual Studio and can's seem to get this one issue right.

Upvotes: 2

Views: 114

Answers (3)

k06a
k06a

Reputation: 18805

Project Properties -> Common Properties -> Frameworks and References

MSVS2010 Screenshot

Upvotes: 0

user349026
user349026

Reputation:

How do I reference a DLL in a VC++ project
Read through and you will get there. It is done using visual studio compiler settings. You can do it via programming as well. Check this From SO Shortcut via programming is to use the following

pragma comment (lib, "test.lib")

The library test.lib should be accessible to your program.

And finally look here if you want to add third party libraries to your project.

Upvotes: 1

Jeroen Jacobs
Jeroen Jacobs

Reputation: 1525

pragma comment (lib, "lib_name.lib")

That should do the trick.

There is probably some setting in the project properties too, but I can't check that right now.

Upvotes: 2

Related Questions