cURL / Mailing Lists / curl-library / Single Mail

curl-library

Linker error, Dev-C++, Windows XP

From: <furs22_at_o2.pl>
Date: Sat, 3 Feb 2007 15:08:15 +0100

I'm beginner. I tried to compile simple source code using libcurl. I
downloaded Dev-C++ and libcurl for Windows. I copied catalog 'curl',
which was in libcurl archive to 'Dev-C++\include'.
Must I do sth else?
Then I tried compile 'simple.c' which is in libcurl archive:

Compiler:
  [Linker error] undefined reference to `_imp__curl_easy_init'
  [Linker error] undefined reference to `_imp__curl_easy_setopt'
  [Linker error] undefined reference to `_imp__curl_easy_perform'
  [Linker error] undefined reference to `_imp__curl_easy_cleanup'
  ld returned 1 exit status
  
Compile log:
Compiler: Default compiler
Executing gcc.exe...
gcc.exe "D:\Programy\libcurl-7.16.0\docs\examples\simple.c" -o "D:\Programy\libcurl-7.16.0\docs\examples\simple.exe" -I"C:\Dev\include" -L"C:\Dev\lib"
D:\DOCUME~1\Spearow\USTAWI~1\Temp/ccSSbaaa.o(.text+0x2b):simple.c: undefined reference to `_imp__curl_easy_init'
D:\DOCUME~1\Spearow\USTAWI~1\Temp/ccSSbaaa.o(.text+0x51):simple.c: undefined reference to `_imp__curl_easy_setopt'
D:\DOCUME~1\Spearow\USTAWI~1\Temp/ccSSbaaa.o(.text+0x5e):simple.c: undefined reference to `_imp__curl_easy_perform'
D:\DOCUME~1\Spearow\USTAWI~1\Temp/ccSSbaaa.o(.text+0x6e):simple.c: undefined reference to `_imp__curl_easy_cleanup'
collect2: ld returned 1 exit status
Execution terminated

I don't know what path is this:
'D:\DOCUME~1\Spearow\USTAWI~1\Temp/ccSSbaaa.o'.
What I'm doing wrong?
Received on 2007-02-03