interfacing with the windows api

Chris Miller chris at dprogramming.com
Tue Feb 21 02:42:32 PST 2006


On Tue, 21 Feb 2006 05:38:44 -0500, lee <lee_member at pathlink.com> wrote:

> Unfortunately when I tried to compile it the debugger flaged several  
> errors in
> the resulting obj file. Each of these errors involved undefined Symbols.  
> For
> example The first error reads;
> 'winsamp.obj(winsamp)
> error 42: Symbol Undefined _SelectObject at 8'
>
> I moved a copy of winsamp.d into the same directory as dmd.exe, and I  
> tried
> compiling it with the line ;
> 'dmd winsamp.d'
>
> Is there anything wrong with the source code. Or did I compile it wrong?
>

Try:  dmd winsamp.d gdi32.lib



More information about the Digitalmars-d mailing list