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

Chris Miller chris at dprogramming.com
Wed Oct 25 04:23:23 PDT 2006


On Wed, 25 Oct 2006 05:08:33 -0400, Nahon <lburger at hu.tesco-europe.com>  
wrote:

> 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.



More information about the Digitalmars-d mailing list