Am 10.11.2011 02:32, schrieb Vladimir Panteleev:
On Wed, 09 Nov 2011 20:09:39 +0200, Tobse <tobia...@onlinehome.de> wrote:

Hey,
i wanted to write a basic cli chat to get familiar with d. So i looked
up the
default library for sockets and found std.socket; There is a note that
says
"compile with ws2_32.lib". When i simply run:

dmd main.d

it tells me:

OPTLINK (R) for Win32 Release 8.00.12
Copyright (C) Digital Mars 1989-2010 All rights reserved.
http://www.digitalmars.com/ctg/optlink.html
dist\client.obj(client)
Error 42: Symbol Undefined _D3std6socket7Address8toStringMFZAya
dist\client.obj(client)
Error 42: Symbol Undefined
_D3std6socket7Address13addressFamilyMFZE3std6socket1
3AddressFamily
dist\client.obj(client)
Error 42: Symbol Undefined _D3std6socket7Address7nameLenMFZi
dist\client.obj(client)
Error 42: Symbol Undefined
_D3std6socket7Address4nameMFZPS3std1c7windows7winsoc
k8sockaddr
--- errorlevel 4

These errors don't have anything to do with ws2_32.lib. It looks like
you are trying to use the latest version of std.socket sources (from
git) with an outdated phobos.lib. Did you download the latest version of
std.socket without rebuilding Phobos, or something?


Well, i should have the latest version because i started learning D this monday and downloaded the compiler on thuesday. I will try that -v
option and maybe mingw works for me. I will also try this
pgrama(lib, "ws2_32.lib");

Reply via email to