Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
August 05, 2004 htmlget.d | ||||
---|---|---|---|---|
| ||||
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 Re: htmlget.d | ||||
---|---|---|---|---|
| ||||
Posted in reply to Newbie Attachments: | 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 Re: htmlget.d | ||||
---|---|---|---|---|
| ||||
Posted in reply to Newbie | 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 Re: htmlget.d | ||||
---|---|---|---|---|
| ||||
Posted in reply to bobef | Thank you ! |
August 07, 2004 Re: htmlget.d | ||||
---|---|---|---|---|
| ||||
Posted in reply to J C Calvarese | Thanks to you as well. (I have not checked the entire thread initially, sorry.) |
Copyright © 1999-2021 by the D Language Foundation