cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Need clarification on tutorial

From: Igor Korot <ikorot01_at_gmail.com>
Date: Wed, 11 Jul 2012 01:56:54 -0700

Hi,

On Wed, Jul 11, 2012 at 1:33 AM, Lijo Antony <lta_at_one.com> wrote:
> On 07/11/2012 11:56 AM, Igor Korot wrote:
>>
>> 1. Would it be possible to clarify at least point one in the link I
>> referenced?
>
>
> I am sorry, I didn't get you. Could you ask your question again?

Would it be possible update the info on the link I put in my first
post with the
proper function. At least it will be consistent with other pieces of
the tutorial.

>
>
>
>> 2. Does anybody works with libcurl on Windows with MSVC 2010?
>> I did successfully compile the library with it by using provided
>> vc6.dsw file, but then
>> trying to use it in my own project I am getting a link error on every
>> single
>> libcurl.
>> I did update my project properties, the compiler didn't complain, only
>> linker.
>>
>> I can post my project if needed.
>>
>
> More info, like the specific link errors would be helpful.

1>tesseract.obj : error LNK2019: unresolved external symbol
__imp__curl_easy_init referenced in function "public: virtual bool
__thiscall MyApp::OnInit(void)" (?OnInit_at_MyApp@@UAE_NXZ)
1>tesseract.obj : error LNK2019: unresolved external symbol
__imp__curl_global_init referenced in function "public: virtual bool
__thiscall MyApp::OnInit(void)" (?OnInit_at_MyApp@@UAE_NXZ)
1>tesseract.obj : error LNK2019: unresolved external symbol
__imp__curl_easy_cleanup referenced in function "public: virtual int
__thiscall MyApp::OnExit(void)" (?OnExit_at_MyApp@@UAEHXZ)
1>tesseract.obj : error LNK2019: unresolved external symbol
__imp__curl_global_cleanup referenced in function "public: virtual int
__thiscall MyApp::OnExit(void)" (?OnExit_at_MyApp@@UAEHXZ)
1>windowpanel.obj : error LNK2019: unresolved external symbol
__imp__curl_formadd referenced in function "protected: void __thiscall
CWindowPanel::OCRProcess(class wxString const &)"
(?OCRProcess_at_CWindowPanel@@IAEXABVwxString@@@Z)
1>windowpanel.obj : error LNK2019: unresolved external symbol
__imp__curl_easy_perform referenced in function "protected: void
__thiscall CWindowPanel::OCRProcess(class wxString const &)"
(?OCRProcess_at_CWindowPanel@@IAEXABVwxString@@@Z)
1>windowpanel.obj : error LNK2019: unresolved external symbol
__imp__curl_easy_setopt referenced in function "protected: void
__thiscall CWindowPanel::OCRProcess(class wxString const &)"
(?OCRProcess_at_CWindowPanel@@IAEXABVwxString@@@Z)
1>vc_mswud\tesseract.exe : fatal error LNK1120: 7 unresolved externals

And the linker options from MSVC IDE:

/OUT:"vc_mswud\tesseract.exe" /INCREMENTAL /NOLOGO
/LIBPATH:"c:\wxWidgets-2.9.4\lib\vc_lib"
/LIBPATH:"C:\libcurl\lib\LIB-Debug" "wxbase29ud_net.lib"
"wxmsw29ud_media.lib" "wxmsw29ud_core.lib" "wxbase29ud.lib"
"wxtiffd.lib" "wxjpegd.lib" "wxpngd.lib" "wxzlibd.lib" "wxregexud.lib"
"wxexpatd.lib" "libcurld.lib" "kernel32.lib" "user32.lib" "gdi32.lib"
"comdlg32.lib" "winspool.lib" "winmm.lib" "shell32.lib" "comctl32.lib"
"ole32.lib" "oleaut32.lib" "uuid.lib" "rpcrt4.lib" "advapi32.lib"
"ws2_32.lib" "wininet.lib" "odbc32.lib" "odbccp32.lib" /MANIFEST
/ManifestFile:"vc_mswud\tesseract\tesseract.exe.intermediate.manifest"
/ALLOWISOLATION /MANIFESTUAC:"level='asInvoker' uiAccess='false'"
/DEBUG /PDB:"vc_mswud\tesseract.pdb" /SUBSYSTEM:WINDOWS
/PGD:"vc_mswud\tesseract.pgd" /TLBID:1 /DYNAMICBASE /NXCOMPAT
/MACHINE:X86 /ERRORREPORT:QUEUE

Thank you.

>
>
> -lijo
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-07-11