Thread overview | |||||
---|---|---|---|---|---|
|
November 10, 2003 Error building winsamp.d | ||||
---|---|---|---|---|
| ||||
Hello all. I've downloaded the D compiler, saved it at C:\dmd and the C compiler at C:\dm. Compilation of all samples was fine, except for winsamp.d, which give the following error: C:\dmd\samples\d>\dmd\bin\dmd winsamp 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 What is wrong? Thanks. Luciano |
November 10, 2003 Re: Error building winsamp.d | ||||
---|---|---|---|---|
| ||||
Posted in reply to Luciano Coutinho Barcellos | link with gdi32.lib "Luciano Coutinho Barcellos" <majnun@ig.com.br> wrote in message news:booula$1npj$1@digitaldaemon.com... > Hello all. > > I've downloaded the D compiler, saved it at C:\dmd and the C compiler at > C:\dm. > Compilation of all samples was fine, except for winsamp.d, which give > the following error: > > C:\dmd\samples\d>\dmd\bin\dmd winsamp > 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 > > What is wrong? Thanks. > > Luciano > > |
November 10, 2003 Re: Error building winsamp.d | ||||
---|---|---|---|---|
| ||||
Posted in reply to Luciano Coutinho Barcellos | Luciano Coutinho Barcellos:
>C:\dmd\samples\d>\dmd\bin\dmd winsamp
>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
>
> What is wrong? Thanks.
Type this:
C:\dmd\samples\d>\dmd\bin\dmd winsamp \dm\lib\gdi32.lib
(The undefined functions are contained in the windows DLL
gdi32.dll. To let the linker know, you have to pass it
the .lib file for that .dll.)
|
Copyright © 1999-2021 by the D Language Foundation