|
-
September 8th, 2011, 11:39 AM
#1
Linking to DLLs with Visual Studio 10
Hello,
I have a library that I want to link to with Visual Studio 10. It is a dynamic-link library, with a .dll file and a .lib file. I am following what I think is the correct procedure for linking, but it is not working. Here is what I have tried:
1. Add the directory of the .lib file to "Additional Library Directories".
2. Add the .lib to "Additional Dependencies".
3. Add the directory of the .dll file to "VC++ Directories / Executable Directories".
Running this program tells me that it cannot find the required .dll file.
The only way I can solve this is by manually copying the .dll file into the Debug or Release folder of my Visual Studio project. But isn't this the same as step 3 from above?
Thanks for your help.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|