Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

using libcurl

297 views
Skip to first unread message

moromete

unread,
Jan 20, 2011, 5:29:14 AM1/20/11
to
Hi,

how can i use libcurl with openwatcom ?
i have downloaded Win 32 MSVC from here:
http://curl.haxx.se/latest.cgi?curl=win32-devel-msvc
and i try to compile "simple.c" source.
compile is working, but on linking i've got this error messages.
--------------------------------------------------------------------------
cd D:\working.win\curl-test
wmake -f D:\working.win\curl-test\curl.mk -h -e D:\working.win\curl-
test\curl.exe
wlink name curl d all sys nt op m op maxe=25 op q op symf @curl.lk1
Error! E2028: __imp_curl_easy_init is an undefined reference
Error! E2028: __imp_curl_easy_setopt is an undefined reference
Error! E2028: __imp_curl_easy_perform is an undefined reference
Error! E2028: __imp_curl_easy_cleanup is an undefined reference
file main.obj(D:\working.win\curl-test\main.cpp): undefined symbol
__imp_curl_easy_init
file main.obj(D:\working.win\curl-test\main.cpp): undefined symbol
__imp_curl_easy_setopt
file main.obj(D:\working.win\curl-test\main.cpp): undefined symbol
__imp_curl_easy_perform
file main.obj(D:\working.win\curl-test\main.cpp): undefined symbol
__imp_curl_easy_cleanup
Error(E42): Last command making (D:\working.win\curl-test\curl.exe)
returned a bad status
Error(E02): Make execution terminated
Execution complete
--------------------------------------------------------------------------
libcurl_imp.lib, is added to project.

thanks !

moromete

unread,
Jan 20, 2011, 7:03:49 AM1/20/11
to
SOLVED !

see at:
http://curl.haxx.se/dev/source.html
and use

git clone git://github.com/bagder/curl.git

after that move in directory <download_dir>\curl\src

$wmake -u -f makefile.watcom

in directory \curl\lib you will find lib and dll
now you must download binaries of curl from here:
http://curl.haxx.se/download.html
and look at Win32 - MSVC devel package
download this package unzip untar in c:\ and replace lib and dll with
those build from source.
on project add libraries libcurl_imb.lib, openldap.lib
in project directory you must have libcurl.dll, openldap.dll
if on runtime you have "missing libsasl.dll" you cant download from
here
http://www.dlldll.com/libsasl.dll_download.html

that all !
hapy curl

0 new messages