www.digitalmars.com         C & C++   DMDScript  

D - compiling htmlget.d results in phobos.lib errors

reply jicman gmail.com writes:
Greetings!

I am trying to compile the d program called gethtml.d.  When I try to 
compile it,

14:43:49.94>dmd htmlget.d
c:\dmd\bin\..\..\dm\bin\link.exe htmlget,,,user32+kernel32/noi;
OPTLINK (R) for Win32  Release 7.50B1
Copyright (C) Digital Mars 1989 - 2001  All Rights Reserved

c:\dmd\bin\..\lib\phobos.lib(socket)
Error 42: Symbol Undefined _gethostbyname 4
c:\dmd\bin\..\lib\phobos.lib(socket)
Error 42: Symbol Undefined _gethostbyaddr 12
c:\dmd\bin\..\lib\phobos.lib(socket)
Error 42: Symbol Undefined _inet_addr 4
c:\dmd\bin\..\lib\phobos.lib(socket)
Error 42: Symbol Undefined _inet_ntoa 4
c:\dmd\bin\..\lib\phobos.lib(socket)
Error 42: Symbol Undefined _ioctlsocket 12
c:\dmd\bin\..\lib\phobos.lib(socket)
Error 42: Symbol Undefined _getsockopt 20
c:\dmd\bin\..\lib\phobos.lib(socket)
Error 42: Symbol Undefined _bind 12
c:\dmd\bin\..\lib\phobos.lib(socket)
Error 42: Symbol Undefined _connect 12
c:\dmd\bin\..\lib\phobos.lib(socket)
Error 42: Symbol Undefined _WSAGetLastError 0
c:\dmd\bin\..\lib\phobos.lib(socket)
Error 42: Symbol Undefined _listen 8
c:\dmd\bin\..\lib\phobos.lib(socket)
Error 42: Symbol Undefined _accept 12
c:\dmd\bin\..\lib\phobos.lib(socket)
Error 42: Symbol Undefined _shutdown 8
c:\dmd\bin\..\lib\phobos.lib(socket)
Error 42: Symbol Undefined _closesocket 4
c:\dmd\bin\..\lib\phobos.lib(socket)
Error 42: Symbol Undefined _getpeername 12
c:\dmd\bin\..\lib\phobos.lib(socket)
Error 42: Symbol Undefined _getsockname 12
c:\dmd\bin\..\lib\phobos.lib(socket)
Error 42: Symbol Undefined _send 16
c:\dmd\bin\..\lib\phobos.lib(socket)
Error 42: Symbol Undefined _sendto 24
c:\dmd\bin\..\lib\phobos.lib(socket)
Error 42: Symbol Undefined _recv 16
c:\dmd\bin\..\lib\phobos.lib(socket)
Error 42: Symbol Undefined _recvfrom 24
c:\dmd\bin\..\lib\phobos.lib(socket)
Error 42: Symbol Undefined _setsockopt 20
c:\dmd\bin\..\lib\phobos.lib(socket)
Error 42: Symbol Undefined _socket 12
c:\dmd\bin\..\lib\phobos.lib(socket)
Error 42: Symbol Undefined _WSAStartup 8
c:\dmd\bin\..\lib\phobos.lib(socket)
Error 42: Symbol Undefined _WSACleanup 0
--- errorlevel 23

I get all those errors.  Any ideas how to clear them?  I am kind of in a 
hurry. :-)  Don't want to use c to do an htmlget program.

thanks.

josé 
Feb 10 2005
parent "Carlos Santander B." <csantander619 gmail.com> writes:
jicman gmail.com wrote:
 Greetings!
 
 I am trying to compile the d program called gethtml.d.  When I try to 
 compile it,
 
 14:43:49.94>dmd htmlget.d
 c:\dmd\bin\..\..\dm\bin\link.exe htmlget,,,user32+kernel32/noi;
 OPTLINK (R) for Win32  Release 7.50B1
 Copyright (C) Digital Mars 1989 - 2001  All Rights Reserved
 
 c:\dmd\bin\..\lib\phobos.lib(socket)
 Error 42: Symbol Undefined _gethostbyname 4
 c:\dmd\bin\..\lib\phobos.lib(socket)
 Error 42: Symbol Undefined _gethostbyaddr 12
 c:\dmd\bin\..\lib\phobos.lib(socket)
 Error 42: Symbol Undefined _inet_addr 4
 c:\dmd\bin\..\lib\phobos.lib(socket)
 Error 42: Symbol Undefined _inet_ntoa 4
 c:\dmd\bin\..\lib\phobos.lib(socket)
 Error 42: Symbol Undefined _ioctlsocket 12
 c:\dmd\bin\..\lib\phobos.lib(socket)
 Error 42: Symbol Undefined _getsockopt 20
 c:\dmd\bin\..\lib\phobos.lib(socket)
 Error 42: Symbol Undefined _bind 12
 c:\dmd\bin\..\lib\phobos.lib(socket)
 Error 42: Symbol Undefined _connect 12
 c:\dmd\bin\..\lib\phobos.lib(socket)
 Error 42: Symbol Undefined _WSAGetLastError 0
 c:\dmd\bin\..\lib\phobos.lib(socket)
 Error 42: Symbol Undefined _listen 8
 c:\dmd\bin\..\lib\phobos.lib(socket)
 Error 42: Symbol Undefined _accept 12
 c:\dmd\bin\..\lib\phobos.lib(socket)
 Error 42: Symbol Undefined _shutdown 8
 c:\dmd\bin\..\lib\phobos.lib(socket)
 Error 42: Symbol Undefined _closesocket 4
 c:\dmd\bin\..\lib\phobos.lib(socket)
 Error 42: Symbol Undefined _getpeername 12
 c:\dmd\bin\..\lib\phobos.lib(socket)
 Error 42: Symbol Undefined _getsockname 12
 c:\dmd\bin\..\lib\phobos.lib(socket)
 Error 42: Symbol Undefined _send 16
 c:\dmd\bin\..\lib\phobos.lib(socket)
 Error 42: Symbol Undefined _sendto 24
 c:\dmd\bin\..\lib\phobos.lib(socket)
 Error 42: Symbol Undefined _recv 16
 c:\dmd\bin\..\lib\phobos.lib(socket)
 Error 42: Symbol Undefined _recvfrom 24
 c:\dmd\bin\..\lib\phobos.lib(socket)
 Error 42: Symbol Undefined _setsockopt 20
 c:\dmd\bin\..\lib\phobos.lib(socket)
 Error 42: Symbol Undefined _socket 12
 c:\dmd\bin\..\lib\phobos.lib(socket)
 Error 42: Symbol Undefined _WSAStartup 8
 c:\dmd\bin\..\lib\phobos.lib(socket)
 Error 42: Symbol Undefined _WSACleanup 0
 --- errorlevel 23
 
 I get all those errors.  Any ideas how to clear them?  I am kind of in a 
 hurry. :-)  Don't want to use c to do an htmlget program.
 
 thanks.
 
 josé 
 
 
You have to link ws2_32.lib or winsock2.lib: dmd htmlget.d ws2_32.lib And the ng you posted to is deprecated. _______________________ Carlos Santander Bernal
Feb 10 2005