DSound.h compiling problem in winlink.cpp

Found a bug? Please report it, but remember to follow the bug reporting guidelines.
Missing a sane feature? Let us know!
But please do NOT request ports to other systems.

Moderator: ZSNES Mods

Post Reply
Bahamut_ZERO_Clue

DSound.h compiling problem in winlink.cpp

Post by Bahamut_ZERO_Clue »

I got the following error when compiling with Visual C++ 6.0 through Cygwin with the DX 9.0c SDK from the CVS. Anyone have a fix for this?


winlink.cpp
C:\Program Files\Microsoft Visual Studio\VC98\include\dsound.h(305) : error C214
6: syntax error : missing ';' before identifier 'dwReserved1'
C:\Program Files\Microsoft Visual Studio\VC98\include\dsound.h(305) : error C250
1: 'DWORD_PTR' : missing storage-class or type specifiers
C:\Program Files\Microsoft Visual Studio\VC98\include\dsound.h(305) : error C250
1: 'dwReserved1' : missing storage-class or type specifiers
C:\Program Files\Microsoft Visual Studio\VC98\include\dsound.h(306) : error C214
6: syntax error : missing ';' before identifier 'dwReserved2'
C:\Program Files\Microsoft Visual Studio\VC98\include\dsound.h(306) : error C250
1: 'DWORD_PTR' : missing storage-class or type specifiers
C:\Program Files\Microsoft Visual Studio\VC98\include\dsound.h(306) : error C250
1: 'dwReserved2' : missing storage-class or type specifiers
make: *** [win/winlink.obj] Error 2
Noxious Ninja
Dark Wind
Posts: 1271
Joined: Thu Jul 29, 2004 8:58 pm
Location: Texas
Contact:

Re: DSound.h compiling problem in winlink.cpp

Post by Noxious Ninja »

Bahamut_ZERO_939 wrote:when compiling with Visual C++ 6.0 through Cygwin
:?:
[u][url=http://bash.org/?577451]#577451[/url][/u]
Nach
ZSNES Developer
ZSNES Developer
Posts: 3904
Joined: Tue Jul 27, 2004 10:54 pm
Location: Solar powered park bench
Contact:

Re: DSound.h compiling problem in winlink.cpp

Post by Nach »

Noxious Ninja wrote:
Bahamut_ZERO_939 wrote:when compiling with Visual C++ 6.0 through Cygwin
:?:
He probably means that he's using the make that comes with Cygwin.
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
MaxSt
ZSNES Developer
ZSNES Developer
Posts: 113
Joined: Wed Jul 28, 2004 7:07 am
Location: USA
Contact:

Re: DSound.h compiling problem in winlink.cpp

Post by MaxSt »

Bahamut_ZERO_939 wrote: C:\Program Files\Microsoft Visual Studio\VC98\include\dsound.h(305) : error C214
You are using very old DirectX header files, which came with the MSVC.
You have to use the new ones, from DX 9 SDK.

In MSVC go to Tools/Option/Directories, add DX 9 SDK directories there (both Include and Libraries)- and make sure they are on top of the list.

MaxSt.
Bahamut_ZERO_Clue

Post by Bahamut_ZERO_Clue »

I am using the DirectX 9.0c SDK headers and the old DirectX 6.1a headers were overwritten when I copied them over the the VC folders.
Bahamut_ZERO_Clue

Post by Bahamut_ZERO_Clue »

Edit: Well I traced the problem to the lines in DSOUND.H and fixed it by doing this...

//DWORD_PTR dwReserved1;
//DWORD_PTR dwReserved2;
DWORD dwReserved1;
DWORD dwReserved2;

It now compiles a bit more but now the linking is messed up and several items won't compile into the binary resulting in several errors.

This leads to another question...

I heard sometime back that someone built a near working binary using only MinGW and the MinGW DX8 SDK from the Allegro Gaming Libary page. Is ZSnes anywhere near getting away from Visual C++ and being able to compile in freeware compilers like Cygwin, MinGW, and such as it does nativly in UNIX-like systems?
MaxSt
ZSNES Developer
ZSNES Developer
Posts: 113
Joined: Wed Jul 28, 2004 7:07 am
Location: USA
Contact:

Post by MaxSt »

Try to find older SDK. I have DirectX 8 SDK, and it compiles just fine.

(I don't see any DWORD_PTR in my dsound.h)
Post Reply