(newbie) How to import foreign (Windows) DLLs?

Nahon lburger at hu.tesco-europe.com
Wed Oct 25 04:30:36 PDT 2006


>> Hi.
>>
>> I've read about the subject anything I could find but I've found no
>> solution.
>> I want to use std.socket but as I get to Socket.select() I get more than
>> a
>> page full of error messages (see below). The Phobos documentation says
>> that
>> link using ws2_32.dll, but how? I've converted it to .lib but I found no
>> way
>> to build it into my project. (I can not link the sample listen.d
>> either.) I've
>> tried to pass it within the command line parameters, used pragma() and
>> in my
>> last exasperation I've tried import...
>> What would solve this?
>>
>> Error messages:
>> c:\DMD\bin\..\lib\phobos.lib(socket)
>>  Error 42: Symbol Undefined _getprotobyname at 4


>Add ws2_32.lib to your command line; this file is already provided with
>DMD, you should not generate it.

It works using the provided .lib, thank you. But why not with the implib-ed one?



More information about the Digitalmars-d mailing list