cURL / Mailing Lists / curl-users / Single Mail

curl-users

Basic Sample - ERROR

From: Victor Munoz <vmunoz_at_verizon.net>
Date: Sat, 28 Dec 2002 16:25:13 -0500

Hi,

Please, can you tell me why I get this error message,

C:\CURLAPP>make -f makefile.win
gcc -c mysource.c -I"C:/curl/include"
gcc -o myapp mysource.o -I"C:/curl/include" -L"C:/curl" -l"curl"
C:/curl/libcurl.a(easy.o)(.text+0x23): undefined reference to
`WSAStartup_at_8'
C:/curl/libcurl.a(easy.o)(.text+0x3c): undefined reference to
`WSACleanup_at_0'
..........
..........

==================================================
System:

WIN2K
Mingw32
gcc3.2
CURL version 7.10.2

=================================================

Makefile:

myapp: mysource.o
    gcc -o myapp mysource.o -I"C:/curl/include" -L"C:/curl" -l"curl"

mysource.o: mysource.c
    gcc -c mysource.c -I"C:/curl/include"

==================================================

Source:

#include <stdio.h>
#include <stdlib.h>
#include <curl/curl.h>

int main(void)
{
  CURL *curl;
  CURLcode res;

  curl = curl_easy_init();

  system("pause");
  return 0;
}

C:/CURL folder contains:

libcurl.a
libcurl.def
libcurl.dll
libcurldll.a
libeay32.dll
libssl32.dll
curl.exe

Thanks,

Victor

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2002-12-28