-
October 13th, 2009, 06:09 PM
#1
Adding libraries to Win32 Console Application
Hi all,
I am trying to build a library in VC++. It's instruction says something like the folowing:
Create a new empty project of type "Win32 Console Application"
Click on "Project", and then on "Add to Project", and then on "Files"
Select "library files (.lib)" from the "Files of type" drop-down list.
Now, it seems they have used a previous version of VS as the above directions are not useful in the version I am using, i.e. Visual Studio 2005
Any ideas? Seems they have changed the way the libraries are added.
Regards,
Abhi
-
October 13th, 2009, 10:56 PM
#2
Re: Adding libraries to Win32 Console Application
Type in the name of the .lib file in Project Properties -> Configuration Properties -> Linker -> Input -> Additional Dependencies.
Make sure the .lib file can be found in the search path.
If the .lib file is in a different path make sure you add the path where the .lib file exists in Project Properties -> Configuration Properties -> Linker -> General -> Additional Library Directories
-
October 14th, 2009, 01:13 AM
#3
Re: Adding libraries to Win32 Console Application
Originally Posted by abhipro
Any ideas? Seems they have changed the way the libraries are added.
They have changed only the captions
Project->Add Existing Item... and select your lib file.
Or you can use #pragma comment(lib, "libname.lib") in your code.
Tags for this Thread
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
|