Thread overview | |||||||||
---|---|---|---|---|---|---|---|---|---|
|
June 08, 2004 win32 d errors | ||||
---|---|---|---|---|
| ||||
Hi all. I'm trying to get dmd working on a windows xp system, but am having the following problems when trying to compile the winsamp.d program. When I compile winsamp.d alone, I get errors about it not beeing a "vallid win32 executable." When I try compiling in the def file, I get a bunch of linker errors about things like create_font, select_object, and others. Assistance would be appriciated. Ameer |
June 08, 2004 Re: win32 d errors | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ameer Armaly | "Ameer Armaly" wrote... > Hi all. > I'm trying to get dmd working on a windows xp system, but am having the > following problems when trying to compile the winsamp.d program. When I > compile winsamp.d alone, I get errors about it not beeing a "vallid win32 > executable." When I try compiling in the def file, I get a bunch of linker > errors about things like create_font, select_object, and others. Assistance would be appriciated. > To quote the first few line of the source: /* Compile with: * dmd winsamp gdi32.lib winsamp.def */ Also, you'll need to add the switch -d to that cause the example uses C-style cast. Hope that helps :-) KTC -- Experience is a good school but the fees are high. - Heinrich Heine |
June 08, 2004 Re: win32 d errors | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ameer Armaly | In article <ca4j4o$1hrb$1@digitaldaemon.com>, Ameer Armaly says... > >Hi all. >I'm trying to get dmd working on a windows xp system, but am having the >following problems when trying to compile the winsamp.d program. When I >compile winsamp.d alone, I get errors about it not beeing a "vallid win32 >executable." When I try compiling in the def file, I get a bunch of linker >errors about things like create_font, select_object, and others. >Assistance would be appriciated. > > > >Ameer The gdi32.lib is needed. Try this: dmd winsamp.d winsamp.def gdi32.lib By the way, I think you've already handled this, but line 139 should be updated from MessageBoxA(null, (char *)o.toString(), "Error", to: MessageBoxA(null, cast(char *)o.toString(), "Error", (I guess Walter hasn't checked this sample in a while.) jcc7 |
June 08, 2004 Re: win32 d errors | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ameer Armaly | Ameer Armaly wrote: > Hi all. > I'm trying to get dmd working on a windows xp system, but am having the > following problems when trying to compile the winsamp.d program. When I > compile winsamp.d alone, I get errors about it not beeing a "vallid win32 > executable." That's strange. Are you sure the compiler gave you no errors at all? > When I try compiling in the def file, I get a bunch of linker > errors about things like create_font, select_object, and others. > Assistance would be appriciated. That's bizarre. Windows API function names are of the forms CreateFont, SelectObject. What was the exact command you tried to compile with? The one given in a comment at the top of winsamp.d (or has that comment disappeared?) or something else? Stewart. -- My e-mail is valid but not my primary mailbox, aside from its being the unfortunate victim of intensive mail-bombing at the moment. Please keep replies on the 'group where everyone may benefit. |
June 08, 2004 Out of date samples (Was: Re: win32 d errors) | ||||
---|---|---|---|---|
| ||||
Posted in reply to J C Calvarese | "J C Calvarese" wrote... > > (I guess Walter hasn't checked this sample in a while.) > > jcc7 The following samples contain C-style casts: dhry.d hello2.html dserver.d chello.d dclient.d recls_test_1.d recls_test_2.d winsamp.d The following samples isn't build by the script: recls_test_1.d recls_test_2.d winsamp.d d2html.d htmlget.d listener.d The 2 source files test.d & winsamp.d describe the same program. I don't know which of the two is newer version but one of them can be deleted. KTC -- Experience is a good school but the fees are high. - Heinrich Heine |
Copyright © 1999-2021 by the D Language Foundation