www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - d programming and Phobos library

reply jicman <jicman_member pathlink.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 reply Vathix <vathix dprogramming.com> writes:
 dmd htmlget.d
dmd htmlget.d ws2_32.lib
Feb 10 2005
parent jicman <jicman_member pathlink.com> writes:
thanks.


In article <opslz2d5dckcck4r tc3-ppp192.dialup.wzrd.com>, Vathix says...
 dmd htmlget.d
dmd htmlget.d ws2_32.lib
Feb 10 2005