Reputation: 137
I just downloaded a zip file from LibCurl's official site. In it there are 4 folders: include, bin, lib and samples. I know I need to link my VS2010 project with them. I linked the include folder but I can't find how to link the lib folder. And in it there are files with extension .A. Is this normal? Any help will be appreciated.
Upvotes: 1
Views: 1001
Reputation: 50657
Follow the following steps:
Make sure you download the Windows version, not Linux, as @MartinPerry mentioned (as .A
is a Linux file).
Add its include
folder to your VS2010 include paths: Proprieties > VC++ Directories > Include Directories
.
Add its lib
folder to your VS2010 library paths: Proprieties > VC++ Directories > Library Directories
.
Add all the libs
you linked to Linker > Input > Additional Dependencies
.
If it still doesn't work, you may also need to:
**5. Add its bin
folder to your VS2010 executable paths: Proprieties > VC++ Directories > Executable Directories
.
Edit: The above steps should work for many 3rd-party libraries for VS in Windows.
Upvotes: 1
Reputation: 9963
Under Project Properties -> Linker - > Input - > Additional dependencies
Upvotes: 1