www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - htmlget.d

reply Newbie <Newbie_member pathlink.com> writes:
Downloaded D and tried to compile "htmlget.d" (dmd\samples directory), but got
lots of linker errors:

c:\Ab\DmD\dmd\bin\..\lib\phobos.lib(socket)
Error 42: Symbol Undefined _gethostbyname 4
c:\Ab\DmD\dmd\bin\..\lib\phobos.lib(socket)
Error 42: Symbol Undefined _gethostbyaddr 12
(..... several more errors in here ......)
c:\Ab\DmD\dmd\bin\..\lib\phobos.lib(socket)
Error 42: Symbol Undefined _WSACleanup 0
--- errorlevel 23

I am quite sure that all supplied samples are OK. So it's probbly me - but why
???
Aug 05 2004
next sibling parent reply J C Calvarese <jcc7 cox.net> writes:
Newbie wrote:
 Downloaded D and tried to compile "htmlget.d" (dmd\samples directory), but got
 lots of linker errors:
Add ws2_32.lib to the compile command: dmd htmlget.d ws2_32.lib I'd be nice if Walter would add some batch files to "samples\d" directory to show the new people how they need to be compiled (such as the attached file).
 c:\Ab\DmD\dmd\bin\..\lib\phobos.lib(socket)
 Error 42: Symbol Undefined _gethostbyname 4
 c:\Ab\DmD\dmd\bin\..\lib\phobos.lib(socket)
 Error 42: Symbol Undefined _gethostbyaddr 12
 (..... several more errors in here ......)
 c:\Ab\DmD\dmd\bin\..\lib\phobos.lib(socket)
 Error 42: Symbol Undefined _WSACleanup 0
 --- errorlevel 23
 
 I am quite sure that all supplied samples are OK. So it's probbly me - but why
 ???
That's not always true. Sometimes the samples contain deprecated features and stop compiling. (Oops.) -- Justin (a/k/a jcc7) http://jcc_7.tripod.com/d/
Aug 05 2004
parent Newbie <Newbie_member pathlink.com> writes:
Thanks to you as well. (I have not checked the entire thread initially, sorry.)
Aug 06 2004
prev sibling parent reply bobef <bobef_member pathlink.com> writes:
In article <ceucqk$29sv$1 digitaldaemon.com>, Newbie says...
Downloaded D and tried to compile "htmlget.d" (dmd\samples directory), but got
lots of linker errors:

c:\Ab\DmD\dmd\bin\..\lib\phobos.lib(socket)
Error 42: Symbol Undefined _gethostbyname 4
c:\Ab\DmD\dmd\bin\..\lib\phobos.lib(socket)
Error 42: Symbol Undefined _gethostbyaddr 12
(..... several more errors in here ......)
c:\Ab\DmD\dmd\bin\..\lib\phobos.lib(socket)
Error 42: Symbol Undefined _WSACleanup 0
--- errorlevel 23

I am quite sure that all supplied samples are OK. So it's probbly me - but why
???
someone helped me once with the same problem... compile with dmd htmlget.d ws2_32.lib
Aug 05 2004
parent Newbie <Newbie_member pathlink.com> writes:
Thank you !
Aug 06 2004