
05.11.2009, 23:49
|
|
Познавший АНТИЧАТ
Регистрация: 16.04.2006
Сообщений: 1,488
Провел на форуме: 2209675
Репутация:
537
|
|
подключаю curl-7.19.7 к eclipse и mingw 5.1.6
g++ -O3 -Wall -c -fmessage-length=0 -DCURL_STATICLIB -omain.o ..\main.cpp
g++ -LC:\mingw\lib -ohelloworld.exe main.o -lcurl -lwsock32 -lwldap32
lib скомпилировал и закинул в mingw/lib
curl/*.h - в mingw/include/curl
компилируется нормально, а при запуске получаю ошибки:
/mingw/lib/libcurl.a(socks.o)  .text+0x9fd): undefined reference to `htons@4'
/mingw/lib/libcurl.a(socks.o)  .text+0xbcf): undefined reference to `htons@4'
/mingw/lib/libcurl.a(socks.o)  .text+0xf08): undefined reference to `ntohs@4'
|
|
|