c++ - Building libcurl with DMC
- Charles Sanders (89/89) Aug 09 2003 Hey all,
- Walter (7/48) Aug 09 2003 The first thing I'd do is generate a .lst file from your library and see...
- Charles Sanders (17/78) Aug 09 2003 Neat!
- Walter (5/7) Aug 09 2003 still
- Charles Sanders (60/120) Aug 10 2003 Hey again another quick question,
- Walter (6/12) Aug 11 2003 See www.digitalmars.com/faq.html#sysimport
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 begin 666 Makefile.dmc M(R,C(R,C(R,C(R,C(R,C(R,C(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!4DE%4RD* M8F-U<FQ?85]/0DI%0U13*0H*"F%L;#H ;&EB8W5R;"YA( H*;&EB8W5R;"YA M.B D*&QI8F-U<FQ?85]33U520T53*2 *"20H0T]-4$E,12D )"AL:6)C=7)L M7V%?4T]54D-%4RD*"20H3$E"*2 M8R!L:6)C=7)L("0H;&EB8W5R;%]A7T]" ` end
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 ??Itseems 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 withimplib.exeThanks for any help, Charles C:\curl-7.10.5\lib>dmc -I../include test.c libcurl.lib ws2_32.libwinmm.liblink 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 libraryNeat! 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 seeifthe symbols are really in there or not. "Charles Sanders" <sanders-consulting comcast.net> wrote in message news:bh3rc3$qp$1 digitaldaemon.com...theHey 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 likeIlib.exe is run correctly, it exports the library as expected, but whenthetry to link to a test file I get the errors listed beow. Attached iswww.atari-soldiers.com/dmc_build.zipsource and the Makefile im using. Not sure what I'm doing wrong here ??Itseems to all be in easy.c (easy.obj) -- but all those symbols should be defined! Source is to big, you can find it atP.S. I created the winmm.lib and ws2_32.lib and wsock32.lib withimplib.exeThanks for any help, Charles C:\curl-7.10.5\lib>dmc -I../include test.c libcurl.lib ws2_32.libwinmm.liblink 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 executablestillcreated ?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 seeifthe symbols are really in there or not. "Charles Sanders" <sanders-consulting comcast.net> wrote in message news:bh3rc3$qp$1 digitaldaemon.com...theHey 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 likeIlib.exe is run correctly, it exports the library as expected, but whenthetry to link to a test file I get the errors listed beow. Attached iswww.atari-soldiers.com/dmc_build.zipsource and the Makefile im using. Not sure what I'm doing wrong here ??Itseems to all be in easy.c (easy.obj) -- but all those symbols should be defined! Source is to big, you can find it atP.S. I created the winmm.lib and ws2_32.lib and wsock32.lib withimplib.exeThanks for any help, Charles C:\curl-7.10.5\lib>dmc -I../include test.c libcurl.lib ws2_32.libwinmm.liblink 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 inthedll ? What do I need to do to fix this ?
Aug 11 2003