c++ - Building libcurl with DMC
- "Charles Sanders" <sanders-consulting comcast.net> Aug 09 2003
- "Walter" <walter digitalmars.com> Aug 09 2003
- "Charles Sanders" <sanders-consulting comcast.net> Aug 09 2003
- "Walter" <walter digitalmars.com> Aug 09 2003
- "Charles Sanders" <sanders-consulting comcast.net> Aug 10 2003
- "Walter" <walter digitalmars.com> Aug 11 2003
Hey all, First time to post, Im trying to build libcurl and im feeling stupid, I can't seem to get it to work :/. It compiles fine, and it looks like the lib.exe is run correctly, it exports the library as expected, but when I try to link to a test file I get the errors listed beow. Attached is the source and the Makefile im using. Not sure what I'm doing wrong here ?? It seems to all be in easy.c (easy.obj) -- but all those symbols should be defined! Source is to big, you can find it at www.atari-soldiers.com/dmc_build.zip P.S. I created the winmm.lib and ws2_32.lib and wsock32.lib with implib.exe Thanks for any help, Charles C:\curl-7.10.5\lib>dmc -I../include test.c libcurl.lib ws2_32.lib winmm.lib link test,,,libcurl+ws2_32+winmm+user32+kernel32/noi; OPTLINK (R) for Win32 Release 7.50B1 Copyright (C) Digital Mars 1989 - 2001 All Rights Reserved libcurl.lib(easy) Error 42: Symbol Undefined _Curl_cookie_init libcurl.lib(easy) Error 42: Symbol Undefined _Curl_close libcurl.lib(easy) Error 42: Symbol Undefined _Curl_perform libcurl.lib(easy) Error 42: Symbol Undefined _Curl_freednsinfo libcurl.lib(easy) Error 42: Symbol Undefined _Curl_global_host_cache_get libcurl.lib(easy) Error 42: Symbol Undefined _Curl_setopt libcurl.lib(easy) Error 42: Symbol Undefined _Curl_open libcurl.lib(easy) Error 42: Symbol Undefined _Curl_SSL_cleanup libcurl.lib(easy) Error 42: Symbol Undefined _Curl_global_host_cache_dtor libcurl.lib(easy) Error 42: Symbol Undefined _Curl_SSL_init libcurl.lib(easy) Error 42: Symbol Undefined _WSACleanup 0 libcurl.lib(easy) Error 42: Symbol Undefined _WSAStartup 8 --- errorlevel 12
Aug 09 2003
The first thing I'd do is generate a .lst file from your library and see if the symbols are really in there or not. "Charles Sanders" <sanders-consulting comcast.net> wrote in message news:bh3rc3$qp$1 digitaldaemon.com...Hey all, First time to post, Im trying to build libcurl and im feeling stupid, I can't seem to get it to work :/. It compiles fine, and it looks like the lib.exe is run correctly, it exports the library as expected, but when I try to link to a test file I get the errors listed beow. Attached is the source and the Makefile im using. Not sure what I'm doing wrong here ??
seems to all be in easy.c (easy.obj) -- but all those symbols should be defined! Source is to big, you can find it at www.atari-soldiers.com/dmc_build.zip P.S. I created the winmm.lib and ws2_32.lib and wsock32.lib with
Thanks for any help, Charles C:\curl-7.10.5\lib>dmc -I../include test.c libcurl.lib ws2_32.lib
link test,,,libcurl+ws2_32+winmm+user32+kernel32/noi; OPTLINK (R) for Win32 Release 7.50B1 Copyright (C) Digital Mars 1989 - 2001 All Rights Reserved libcurl.lib(easy) Error 42: Symbol Undefined _Curl_cookie_init libcurl.lib(easy) Error 42: Symbol Undefined _Curl_close libcurl.lib(easy) Error 42: Symbol Undefined _Curl_perform libcurl.lib(easy) Error 42: Symbol Undefined _Curl_freednsinfo libcurl.lib(easy) Error 42: Symbol Undefined _Curl_global_host_cache_get libcurl.lib(easy) Error 42: Symbol Undefined _Curl_setopt libcurl.lib(easy) Error 42: Symbol Undefined _Curl_open libcurl.lib(easy) Error 42: Symbol Undefined _Curl_SSL_cleanup libcurl.lib(easy) Error 42: Symbol Undefined _Curl_global_host_cache_dtor libcurl.lib(easy) Error 42: Symbol Undefined _Curl_SSL_init libcurl.lib(easy) Error 42: Symbol Undefined _WSACleanup 0 libcurl.lib(easy) Error 42: Symbol Undefined _WSAStartup 8 --- errorlevel 12
Aug 09 2003
The first thing I'd do is generate a .lst file from your library
Lots of cool tools I look forward to the CD. It took me an embarrisgly long time to realize the if a header file followed a implementation file in the build list that the object file got written over by the compiled header file, I took out all the header files and it builds fine. Quick question, why if the compiler fails on a build is the executable still created ? Thanks, Charles "Walter" <walter digitalmars.com> wrote in message news:bh45nt$akg$1 digitaldaemon.com...The first thing I'd do is generate a .lst file from your library and see
the symbols are really in there or not. "Charles Sanders" <sanders-consulting comcast.net> wrote in message news:bh3rc3$qp$1 digitaldaemon.com...Hey all, First time to post, Im trying to build libcurl and im feeling stupid, I can't seem to get it to work :/. It compiles fine, and it looks like
lib.exe is run correctly, it exports the library as expected, but when
try to link to a test file I get the errors listed beow. Attached is
source and the Makefile im using. Not sure what I'm doing wrong here ??
seems to all be in easy.c (easy.obj) -- but all those symbols should be defined! Source is to big, you can find it at
P.S. I created the winmm.lib and ws2_32.lib and wsock32.lib with
Thanks for any help, Charles C:\curl-7.10.5\lib>dmc -I../include test.c libcurl.lib ws2_32.lib
link test,,,libcurl+ws2_32+winmm+user32+kernel32/noi; OPTLINK (R) for Win32 Release 7.50B1 Copyright (C) Digital Mars 1989 - 2001 All Rights Reserved libcurl.lib(easy) Error 42: Symbol Undefined _Curl_cookie_init libcurl.lib(easy) Error 42: Symbol Undefined _Curl_close libcurl.lib(easy) Error 42: Symbol Undefined _Curl_perform libcurl.lib(easy) Error 42: Symbol Undefined _Curl_freednsinfo libcurl.lib(easy) Error 42: Symbol Undefined _Curl_global_host_cache_get libcurl.lib(easy) Error 42: Symbol Undefined _Curl_setopt libcurl.lib(easy) Error 42: Symbol Undefined _Curl_open libcurl.lib(easy) Error 42: Symbol Undefined _Curl_SSL_cleanup libcurl.lib(easy) Error 42: Symbol Undefined _Curl_global_host_cache_dtor libcurl.lib(easy) Error 42: Symbol Undefined _Curl_SSL_init libcurl.lib(easy) Error 42: Symbol Undefined _WSACleanup 0 libcurl.lib(easy) Error 42: Symbol Undefined _WSAStartup 8 --- errorlevel 12
Aug 09 2003
"Charles Sanders" <sanders-consulting comcast.net> wrote in message news:bh4gi3$kaj$1 digitaldaemon.com...Quick question, why if the compiler fails on a build is the executable
created ?
If you're using a correctly set up makefile, it should stop on the first failure.
Aug 09 2003
Hey again another quick question, I used the implib to create wsock32.lib from C:/WINNT/system32/wsock32.dll , and when I try to link test.c against libcurl I get the undefines listed below. I looked in the libcurl.lst and it contains all of the symbols but without the underscore and X. Is that X an offest for the function in the dll ? What do I need to do to fix this ? I get the same error messages if i do dmc -I../include test.c libcurl wsock32.lib or dmc -I../include test.c libcurl C:\curl-7.10.5\lib>dmc -I../include test.c libcurl wsock32.lib link test,,,libcurl+wsock32+user32+kernel32/noi; OPTLINK (R) for Win32 Release 7.50B1 Copyright (C) Digital Mars 1989 - 2001 All Rights Reserved libcurl.lib(easy) Error 42: Symbol Undefined _WSACleanup 0 libcurl.lib(easy) Error 42: Symbol Undefined _WSAStartup 8 libcurl.lib(url) Error 42: Symbol Undefined _inet_ntoa 4 libcurl.lib(url) Error 42: Symbol Undefined _htons 4 libcurl.lib(url) Error 42: Symbol Undefined _ntohs 4 libcurl.lib(url) Error 42: Symbol Undefined _select 20 libcurl.lib(url) Error 42: Symbol Undefined _closesocket 4 libcurl.lib(transfer) Error 42: Symbol Undefined ___WSAFDIsSet 8 libcurl.lib(hostip) Error 42: Symbol Undefined _gethostbyname 4 libcurl.lib(hostip) Error 42: Symbol Undefined _ntohl 4 libcurl.lib(hostip) Error 42: Symbol Undefined _inet_addr 4 libcurl.lib(hostip) Error 42: Symbol Undefined _htonl 4 libcurl.lib(sendf) Error 42: Symbol Undefined _recv 16 libcurl.lib(sendf) Error 42: Symbol Undefined _send 16 libcurl.lib(timeval) Error 42: Symbol Undefined _timeGetTime 0 libcurl.lib(connect) Error 42: Symbol Undefined _connect 12 libcurl.lib(connect) Error 42: Symbol Undefined _socket 12 libcurl.lib(connect) Error 42: Symbol Undefined _getsockopt 20 libcurl.lib(connect) Error 42: Symbol Undefined _ioctlsocket 12 --- errorlevel 19 "Walter" <walter digitalmars.com> wrote in message news:bh45nt$akg$1 digitaldaemon.com...The first thing I'd do is generate a .lst file from your library and see
the symbols are really in there or not. "Charles Sanders" <sanders-consulting comcast.net> wrote in message news:bh3rc3$qp$1 digitaldaemon.com...Hey all, First time to post, Im trying to build libcurl and im feeling stupid, I can't seem to get it to work :/. It compiles fine, and it looks like
lib.exe is run correctly, it exports the library as expected, but when
try to link to a test file I get the errors listed beow. Attached is
source and the Makefile im using. Not sure what I'm doing wrong here ??
seems to all be in easy.c (easy.obj) -- but all those symbols should be defined! Source is to big, you can find it at
P.S. I created the winmm.lib and ws2_32.lib and wsock32.lib with
Thanks for any help, Charles C:\curl-7.10.5\lib>dmc -I../include test.c libcurl.lib ws2_32.lib
link test,,,libcurl+ws2_32+winmm+user32+kernel32/noi; OPTLINK (R) for Win32 Release 7.50B1 Copyright (C) Digital Mars 1989 - 2001 All Rights Reserved libcurl.lib(easy) Error 42: Symbol Undefined _Curl_cookie_init libcurl.lib(easy) Error 42: Symbol Undefined _Curl_close libcurl.lib(easy) Error 42: Symbol Undefined _Curl_perform libcurl.lib(easy) Error 42: Symbol Undefined _Curl_freednsinfo libcurl.lib(easy) Error 42: Symbol Undefined _Curl_global_host_cache_get libcurl.lib(easy) Error 42: Symbol Undefined _Curl_setopt libcurl.lib(easy) Error 42: Symbol Undefined _Curl_open libcurl.lib(easy) Error 42: Symbol Undefined _Curl_SSL_cleanup libcurl.lib(easy) Error 42: Symbol Undefined _Curl_global_host_cache_dtor libcurl.lib(easy) Error 42: Symbol Undefined _Curl_SSL_init libcurl.lib(easy) Error 42: Symbol Undefined _WSACleanup 0 libcurl.lib(easy) Error 42: Symbol Undefined _WSAStartup 8 --- errorlevel 12
Aug 10 2003
See www.digitalmars.com/faq.html#sysimport You'll also get wsock23.lib on the CD shipped to you today! "Charles Sanders" <sanders-consulting comcast.net> wrote in message news:bh66gg$24to$1 digitaldaemon.com...Hey again another quick question, I used the implib to create wsock32.lib from C:/WINNT/system32/wsock32.dll
and when I try to link test.c against libcurl I get the undefines listed below. I looked in the libcurl.lst and it contains all of the symbols but without the underscore and X. Is that X an offest for the function in
dll ? What do I need to do to fix this ?
Aug 11 2003









"Walter" <walter digitalmars.com> 