digitalmars.D - the link error with compile examples
I can't link the htmlget.d. It report errors, as d:\d\dmd\bin\..\..\lib\phobos.lib Error 42: Symbol Undefined _getprotobyname 4 .... --- errorlevel 27 help!!!
Jan 04 2007
%u wrote:I can't link the htmlget.d. It report errors, as d:\d\dmd\bin\..\..\lib\phobos.lib Error 42: Symbol Undefined _getprotobyname 4 .... --- errorlevel 27 help!!!Could you give a little more context? p.s. digitlmars.D.learn would be a better place to post this.
Jan 04 2007
I download the new version of dmd and dmc. I try to compile the samples in the dmd. some codes can't link succeed. such as htmlget.d. It reports: d:\dmd\lib\phobos.lib(socket) Error 42: Symbol Undefined _getprotobyname 4 d:\dmd\lib\phobos.lib(socket) Error 42: Symbol Undefined _getprotobynumber 4 d:\dmd\lib\phobos.lib(socket) Error 42: Symbol Undefined _getservbyname 8 d:\dmd\lib\phobos.lib(socket) Error 42: Symbol Undefined _getservbyport 8 d:\dmd\lib\phobos.lib(socket) Error 42: Symbol Undefined _WSAGetLastError 0 d:\dmd\lib\phobos.lib(socket) Error 42: Symbol Undefined _gethostbyname 4 d:\dmd\lib\phobos.lib(socket) Error 42: Symbol Undefined _gethostbyaddr 12 d:\dmd\lib\phobos.lib(socket) Error 42: Symbol Undefined _inet_addr 4 d:\dmd\lib\phobos.lib(socket) Error 42: Symbol Undefined _inet_ntoa 4 d:\dmd\lib\phobos.lib(socket) Error 42: Symbol Undefined _ioctlsocket 12 d:\dmd\lib\phobos.lib(socket) Error 42: Symbol Undefined _getsockopt 20 d:\dmd\lib\phobos.lib(socket) Error 42: Symbol Undefined _bind 12 d:\dmd\lib\phobos.lib(socket) Error 42: Symbol Undefined _connect 12 d:\dmd\lib\phobos.lib(socket) Error 42: Symbol Undefined _listen 8 d:\dmd\lib\phobos.lib(socket) Error 42: Symbol Undefined _accept 12 d:\dmd\lib\phobos.lib(socket) Error 42: Symbol Undefined _closesocket 4 d:\dmd\lib\phobos.lib(socket) Error 42: Symbol Undefined _shutdown 8 d:\dmd\lib\phobos.lib(socket) Error 42: Symbol Undefined _getpeername 12 d:\dmd\lib\phobos.lib(socket) Error 42: Symbol Undefined _getsockname 12 d:\dmd\lib\phobos.lib(socket) Error 42: Symbol Undefined _send 16 d:\dmd\lib\phobos.lib(socket) Error 42: Symbol Undefined _sendto 24 d:\dmd\lib\phobos.lib(socket) Error 42: Symbol Undefined _recv 16 d:\dmd\lib\phobos.lib(socket) Error 42: Symbol Undefined _recvfrom 24 d:\dmd\lib\phobos.lib(socket) Error 42: Symbol Undefined _setsockopt 20 d:\dmd\lib\phobos.lib(socket) Error 42: Symbol Undefined _socket 12 d:\dmd\lib\phobos.lib(socket) Error 42: Symbol Undefined _WSAStartup 8 d:\dmd\lib\phobos.lib(socket) Error 42: Symbol Undefined _WSACleanup 0 --- errorlevel 27
Jan 04 2007
seagate wrote:I download the new version of dmd and dmc. I try to compile the samples in the dmd. some codes can't link succeed. such as htmlget.d. It reports:I don't known why but in win if you need network stuff you need to include \dmd\lib\WS2_32.lib Under linux this is part of the default libs that are included. I think it comes from the standard c lib there.
Jan 04 2007