www.digitalmars.com         C & C++   DMDScript  

D - compiling winsamp

reply earamsey <earamsey_member pathlink.com> writes:
Hello,
I am new to D programming and i'm sort of sniffing around the language. I tried
comping the program \dmd\samples\d\winsamp.d and I get the following errors:

C:\dmd\samples\d>\dmd\bin\dmd winsamp.d
C:\dmd\bin\..\..\dm\bin\link.exe winsamp,,,user32+kernel32/noi;
OPTLINK (R) for Win32  Release 7.50B1
Copyright (C) Digital Mars 1989 - 2001  All Rights Reserved

winsamp.obj(winsamp)
Error 42: Symbol Undefined _SelectObject 8
winsamp.obj(winsamp)
Error 42: Symbol Undefined _SetTextAlign 8
winsamp.obj(winsamp)
Error 42: Symbol Undefined _TextOutA 20
winsamp.obj(winsamp)
Error 42: Symbol Undefined _CreateFontA 56
--- errorlevel 4

any idea what is wrong here?
thanks!
Oct 10 2003
next sibling parent "Charles Sanders" <sanders-consulting comcast.net> writes:
You have to link against gdi32.lib

dmd winsamp.d gdi32.lib

C


"earamsey" <earamsey_member pathlink.com> wrote in message
news:bm741u$1dtm$1 digitaldaemon.com...
 Hello,
 I am new to D programming and i'm sort of sniffing around the language. I
tried
 comping the program \dmd\samples\d\winsamp.d and I get the following
errors:
 C:\dmd\samples\d>\dmd\bin\dmd winsamp.d
 C:\dmd\bin\..\..\dm\bin\link.exe winsamp,,,user32+kernel32/noi;
 OPTLINK (R) for Win32  Release 7.50B1
 Copyright (C) Digital Mars 1989 - 2001  All Rights Reserved

 winsamp.obj(winsamp)
 Error 42: Symbol Undefined _SelectObject 8
 winsamp.obj(winsamp)
 Error 42: Symbol Undefined _SetTextAlign 8
 winsamp.obj(winsamp)
 Error 42: Symbol Undefined _TextOutA 20
 winsamp.obj(winsamp)
 Error 42: Symbol Undefined _CreateFontA 56
 --- errorlevel 4

 any idea what is wrong here?
 thanks!
Oct 10 2003
prev sibling parent "Vathix" <vathix dprogramming.com> writes:
"earamsey" <earamsey_member pathlink.com> wrote in message
news:bm741u$1dtm$1 digitaldaemon.com...
 Hello,
 I am new to D programming and i'm sort of sniffing around the language. I
tried
 comping the program \dmd\samples\d\winsamp.d and I get the following
errors:
 C:\dmd\samples\d>\dmd\bin\dmd winsamp.d
 C:\dmd\bin\..\..\dm\bin\link.exe winsamp,,,user32+kernel32/noi;
 OPTLINK (R) for Win32  Release 7.50B1
 Copyright (C) Digital Mars 1989 - 2001  All Rights Reserved

 winsamp.obj(winsamp)
 Error 42: Symbol Undefined _SelectObject 8
 winsamp.obj(winsamp)
 Error 42: Symbol Undefined _SetTextAlign 8
 winsamp.obj(winsamp)
 Error 42: Symbol Undefined _TextOutA 20
 winsamp.obj(winsamp)
 Error 42: Symbol Undefined _CreateFontA 56
 --- errorlevel 4

 any idea what is wrong here?
 thanks!
Add gdi32.lib to the command line. Those are GDI functions.
Oct 10 2003