Thread overview | |||||
---|---|---|---|---|---|
|
October 10, 2003 compiling winsamp | ||||
---|---|---|---|---|
| ||||
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! |
October 10, 2003 Re: compiling winsamp | ||||
---|---|---|---|---|
| ||||
Posted in reply to earamsey | 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! > > |
October 10, 2003 Re: compiling winsamp | ||||
---|---|---|---|---|
| ||||
Posted in reply to earamsey | "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. |
Copyright © 1999-2021 by the D Language Foundation