Re: [AD] Allegro not compiling anymore

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Eric Botcazou wrote:
The Windows version of Allegro doesn't compile anymore. It stops at
inline.c with errors about undefined stuff like LPGUI.


LPGUID. In the MinGW environment, LPGUID is defined in basetyps.h so there
is no problems.

And in MSVC?


Add #include <ddraw.h> at the top of the file (after winalleg.h) fixes
it. The #include was removed 12 hours ago by Eric's patch.


I removed #include <ddraw.h> because aintwin.h doesn't depend upon
DirectDraw anymore. The remaining LPGUIDs are related to DirectSound.
Does adding #include <dsound.h> fix the problem ?

It sort of fixes it... Here's the error message I get with #incude "dsound.h":


G:\MICROS~1\allegro>make
Compiling Allegro for MSVC, optimised. Please wait...
obj/msvc/runner.exe cl @ -nologo -DALLEGRO_SRC -W1 -Gd -Ox -GB -MT -I. -I./inclu
de -Foobj/msvc/alleg/inline.obj -c src/inline.c
inline.c
G:\MICROS~1\VC98\INCLUDE\dsound.h(61) : error C2143: syntax error : missing '{'
before '*'
G:\MICROS~1\VC98\INCLUDE\dsound.h(128) : error C2061: syntax error : identifier
'LPWAVEFORMATEX'
G:\MICROS~1\VC98\INCLUDE\dsound.h(132) : error C2059: syntax error : '}'
G:\MICROS~1\VC98\INCLUDE\dsound.h(134) : error C2143: syntax error : missing '{'
 before '*'
G:\MICROS~1\VC98\INCLUDE\dsound.h(142) : error C2061: syntax error : identifier
'LPWAVEFORMATEX'
G:\MICROS~1\VC98\INCLUDE\dsound.h(143) : error C2059: syntax error : '}'
G:\MICROS~1\VC98\INCLUDE\dsound.h(145) : error C2143: syntax error : missing '{'
 before '*'
G:\MICROS~1\VC98\INCLUDE\dsound.h(193) : error C2061: syntax error : identifier
'LPWAVEFORMATEX'
G:\MICROS~1\VC98\INCLUDE\dsound.h(194) : error C2059: syntax error : '}'
G:\MICROS~1\VC98\INCLUDE\dsound.h(196) : error C2143: syntax error : missing '{'
 before '*'
G:\MICROS~1\VC98\INCLUDE\dsound.h(284) : error C2143: syntax error : missing ')'
 before '*'
G:\MICROS~1\VC98\INCLUDE\dsound.h(284) : error C2081: 'LPCDSBUFFERDESC' : name i
n formal parameter list illegal
G:\MICROS~1\VC98\INCLUDE\dsound.h(284) : error C2081: 'LPDIRECTSOUNDBUFFER' : na
me in formal parameter list illegal
G:\MICROS~1\VC98\INCLUDE\dsound.h(284) : error C2143: syntax error : missing ';'
 before '*'
G:\MICROS~1\VC98\INCLUDE\dsound.h(284) : error C2059: syntax error : '*'
G:\MICROS~1\VC98\INCLUDE\dsound.h(284) : error C2059: syntax error : ')'
G:\MICROS~1\VC98\INCLUDE\dsound.h(292) : error C2059: syntax error : '}'
G:\MICROS~1\VC98\INCLUDE\dsound.h(337) : error C2081: 'LPWAVEFORMATEX' : name in
 formal parameter list illegal
G:\MICROS~1\VC98\INCLUDE\dsound.h(337) : error C2081: 'DWORD' : name in formal p
arameter list illegal
G:\MICROS~1\VC98\INCLUDE\dsound.h(337) : error C2081: 'LPDWORD' : name in formal
 parameter list illegal
G:\MICROS~1\VC98\INCLUDE\dsound.h(342) : error C2081: 'LPCDSBUFFERDESC' : name i
n formal parameter list illegal
G:\MICROS~1\VC98\INCLUDE\dsound.h(346) : error C2081: 'LPCWAVEFORMATEX' : name i
n formal parameter list illegal
G:\MICROS~1\VC98\INCLUDE\dsound.h(569) : error C2143: syntax error : missing ')'
 before '*'
G:\MICROS~1\VC98\INCLUDE\dsound.h(569) : error C2081: 'LPCDSCBUFFERDESC' : name
in formal parameter list illegal
G:\MICROS~1\VC98\INCLUDE\dsound.h(569) : error C2081: 'LPDIRECTSOUNDCAPTUREBUFFE
R' : name in formal parameter list illegal
G:\MICROS~1\VC98\INCLUDE\dsound.h(569) : error C2143: syntax error : missing ';'
 before '*'
G:\MICROS~1\VC98\INCLUDE\dsound.h(569) : error C2059: syntax error : '*'
G:\MICROS~1\VC98\INCLUDE\dsound.h(569) : error C2059: syntax error : ')'
G:\MICROS~1\VC98\INCLUDE\dsound.h(570) : warning C4028: formal parameter 1 diffe
rent from declaration
G:\MICROS~1\VC98\INCLUDE\dsound.h(570) : warning C4028: formal parameter 2 diffe
rent from declaration
G:\MICROS~1\VC98\INCLUDE\dsound.h(571) : warning C4028: formal parameter 1 diffe
rent from declaration
G:\MICROS~1\VC98\INCLUDE\dsound.h(572) : error C2059: syntax error : '}'
G:\MICROS~1\VC98\INCLUDE\dsound.h(607) : error C2081: 'LPWAVEFORMATEX' : name in
 formal parameter list illegal
G:\MICROS~1\VC98\INCLUDE\dsound.h(607) : error C2081: 'DWORD' : name in formal p
arameter list illegal
G:\MICROS~1\VC98\INCLUDE\dsound.h(607) : error C2081: 'LPDWORD' : name in formal
 parameter list illegal
G:\MICROS~1\VC98\INCLUDE\dsound.h(609) : error C2081: 'LPCDSCBUFFERDESC' : name
in formal parameter list illegal
make: *** [obj/msvc/alleg/inline.obj] Error 2



--
- Robert J Ohannessian
"Microsoft code is probably O(n^20)" (my CS prof)
http://pages.infinit.net/voidstar/



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/