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
DSound.h compiling problem in winlink.cpp
Moderator: ZSNES Mods
-
- Dark Wind
- Posts: 1271
- Joined: Thu Jul 29, 2004 8:58 pm
- Location: Texas
- Contact:
Re: DSound.h compiling problem in winlink.cpp
Bahamut_ZERO_939 wrote:when compiling with Visual C++ 6.0 through Cygwin

[u][url=http://bash.org/?577451]#577451[/url][/u]
-
- 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
He probably means that he's using the make that comes with Cygwin.Noxious Ninja wrote:Bahamut_ZERO_939 wrote:when compiling with Visual C++ 6.0 through Cygwin
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
_____________
Insane Coding
Re: DSound.h compiling problem in winlink.cpp
You are using very old DirectX header files, which came with the MSVC.Bahamut_ZERO_939 wrote: C:\Program Files\Microsoft Visual Studio\VC98\include\dsound.h(305) : error C214
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.
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?
//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?