Thread overview
htmlget.d
Aug 05, 2004
Newbie
Aug 05, 2004
J C Calvarese
Aug 07, 2004
Newbie
Aug 06, 2004
bobef
Aug 06, 2004
Newbie
August 05, 2004
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 ???


August 05, 2004
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/


August 06, 2004
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


August 06, 2004
Thank you !


August 07, 2004
Thanks to you as well. (I have not checked the entire thread initially, sorry.)