D - compiling winsamp
- earamsey (18/18) Oct 10 2003 Hello,
- Charles Sanders (7/25) Oct 10 2003 You have to link against gdi32.lib
- Vathix (5/23) Oct 10 2003 tried
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
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. Itriedcomping the program \dmd\samples\d\winsamp.d and I get the followingerrors: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
"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. Itriedcomping the program \dmd\samples\d\winsamp.d and I get the followingerrors: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