ddraw.h, dinput.h, dsound.h

You can talk about almost anything that you want to on this board.

Moderator: Moderators

Post Reply
User avatar
beneficii
Posts: 127
Joined: Tue Jul 12, 2005 4:37 pm

ddraw.h, dinput.h, dsound.h

Post by beneficii »

For DirectX 8.1 SDK, do these files exist on the web anymore? Apparently, Microsoft has zapped to bits Directx 8.1 SDk.

I had these files before on my old computer, but I did not think to back them up, because I had forgotten how precious they are.
tepples
Posts: 22345
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)
Contact:

Post by tepples »

In here?
strat
Posts: 396
Joined: Mon Apr 07, 2008 6:08 pm
Location: Missouri

Post by strat »

hey while we're at it, I've been having trouble building an allegro project

gcc whatever.c -o whatever.exe -lalleg_s -lgdi32

Then it gives a bunch of unresolved directx symbols and I can't figure out how to link dx with it (without the gdi link it can't find gdi stuff either).

I was able to build allegro itself with mingw.
User avatar
Dwedit
Posts: 4470
Joined: Fri Nov 19, 2004 7:35 pm
Contact:

Post by Dwedit »

http://www.dwedit.org/files/dxsdk.7z

4MB, unzips to 20MB
Mini directx sdk, probably works.

I think it includes DX8 and DX9.
Here come the fortune cookies! Here come the fortune cookies! They're wearing paper hats!
strat
Posts: 396
Joined: Mon Apr 07, 2008 6:08 pm
Location: Missouri

Post by strat »

Hmm, I was able to make some of the undefined symbols go away but throwing in a lot of dx libraries didn't do the trick.
tepples
Posts: 22345
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)
Contact:

Post by tepples »

strat wrote:I've been having trouble building an allegro project

gcc whatever.c -o whatever.exe -lalleg_s -lgdi32

Then it gives a bunch of unresolved directx symbols and I can't figure out how to link dx with it (without the gdi link it can't find gdi stuff either).
Look in .../allegro/docs/build/mingw32.txt, section "Using Allegro". Short version:
  1. #define ALLEGRO_STATICLINK before #include <allegro.h>
  2. -lalleg_s -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lole32 -ldinput -lddraw -ldxguid -lwinmm -ldsound
    (incidentally, the length of this list is why the Linux version uses `allegro-config --libs`)
strat
Posts: 396
Joined: Mon Apr 07, 2008 6:08 pm
Location: Missouri

Post by strat »

Yay! It is builded!
Post Reply