cURL / Mailing Lists / curl-library / Single Mail

curl-library

Problems compiling libcurl with ssl/help

From: Carl Wells <cgrwells_at_yahoo.co.uk>
Date: Mon, 13 Dec 2010 08:28:09 -0800 (PST)

Hi, sorry to disturb you with this, I'm not particularly experienced with compiling but am having some problems. Basically what I want to do is to use curl to get the financial statements from reuters

e.g. from http://www.reuters.com/finance/stocks/incomeStatement/detail?stmtType=INC&perType=ANN&symbol=BATS.L and get the

I managed to compile libcurl and get a number of webpages, but the webpage above requires (free) login and password at

https://commerce.us.reuters.com/login/pages/login/login.do?

In attempting to use curl with this address I get a message to the effect that SSL isn't enabled in curl. So my understanding was that I needed to compile curl with ssl. I followed the steps in http://curl.haxx.se/libcurl/c/Using-libcurl-with-SSH-support-in-Visual-Studio-2008.pdf and successfully compiled libssh2.lib, openssl.lib, and libcurld_imp.lib (I assume I can simply rename that libcurl.lib?).

I'm now finding that I'm getting linking errors with my compiled libcurld_imp.lib. I did get some warnings in compiling the lib

e.g. 1>libssh2.lib(ex_data.obj) : warning LNK4099: PDB 'lib.pdb' was not found with 'libssh2.lib(ex_data.obj)' or at 'C:\work\Projects\c++ libs\curl-7.21.2\lib\DLL-Debug\lib.pdb'; linking object as if no debug info

but given that this is a warning and not an error, and that it refers to some kind of debug info, I assume that my libcurld_imp.lib file is ok.

So the problem I'm having is linking errors when I try to compile any curl c++ code (see bottom for linking messages).

I have added the directory for libcurld_imp.lib to project configuration/Linker/general

i.e.Additional Library directories is set to C:\work\Projects\c++ libs\Libs\curl\%(AdditionalLibraryDirectories)

I have project configuration/Linker/Input/ Additional dependencies set tolibcurl.lib;ws2_32.lib;%(AdditionalDependencies).

C/C++ / Preprocessor is set to WIN32;_DEBUG;_CONSOLE;CURL_STATICLIB;%(PreprocessorDefinitions) (although I don't understand what this does.)

Any help much appreciated! I'm really excited about getting curl running but frustrated as I'm hitting these technical compilation errors. Any thoughts on whether I do need SSL also appreciated (is that going to be easy? I'm completely new to web tech and security).

Thanks.

  All outputs are up-to-date.
1>ManifestResourceCompile:
1> All outputs are up-to-date.
1>simple.obj : error LNK2019: unresolved external symbol _curl_easy_cleanup referenced in function _main
1>simple.obj : error LNK2019: unresolved external symbol _curl_easy_perform referenced in function _main
1>simple.obj : error LNK2019: unresolved external symbol _curl_easy_setopt referenced in function _main
1>simple.obj : error LNK2019: unresolved external symbol _curl_easy_init referenced in function _main
1>C:\work\Projects\curl scraping\scrap\Debug\scrap.exe : fatal error LNK1120: 4 unresolved externals
1>
1>Build FAILED.

      
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-12-13