I have been at this for some time now. I hope someone can tell me what I am doing wrong.
These are the steps I have taken so far:
-Downloaded the latest version of cURL (7.21.7).
-Opened the solution in Visual Studio 2010 using the vc6curl.dsw and converted the projects to VS2010.
-Set the libcurl project configuration to "release" and built. Build succeeded.A folder called "LIB-Release" is created. It contains several obj files and the "libcurl.lib" file resides here as well.
Test Application:
-In the project's settings I pointed the compiler to the curl includes (headers).
C/C++ >> General >> Additional Include Directories
-Added "CURL_STATICLIB" to the preprocessor definitions
C/C++ >> Preprocessor Definitions
-Added the path to the "libcurl.lib" folder in my linker additional library dependencies
Link >> General >> Additional Library Directories
-Added "libcurl.lib" to my linker additional dependencies
Link >> Input >> Additional Dependencies
-Set my projects configuration to "Realease" and hit build!
I get 42 unresolved externals errors:
Error 65 error LNK1120: 42 unresolved externals C:\Users\Nick\Documents\Visual Studio 2010\Projects\curl_static_lib\Release\curl_static_lib.exe curl_static_lib Error 61 error LNK2001: unresolved external symbol ___WSAFDIsSet@8 C:\Users\Nick\Documents\Visual Studio 2010\Projects\curl_static_lib\curl_static_lib\libcurl.lib(select.obj) curl_static_lib Error 59 error LNK2001: unresolved external symbol _imp_accept@12 C:\Users\Nick\Documents\Visual Studio 2010\Projects\curl_static_lib\curl_static_lib\libcurl.lib(ftp.obj) curl_static_lib Error 46 error LNK2001: unresolved external symbol _imp_ber_free C:\Users\Nick\Documents\Visual Studio 2010\Projects\curl_static_lib\curl_static_lib\libcurl.lib(ldap.obj) curl_static_lib Error 26 error LNK2001: unresolved external symbol _imp_bind@12 C:\Users\Nick\Documents\Visual Studio 2010\Projects\curl_static_lib\curl_static_lib\libcurl.lib(connect.obj) curl_static_lib
I have tried building using the "Debug" configuration as well. Can someone please tell me where I am going wrong?