Page 1 of 1

trunk error [codeblocks]

Posted: 21 Jun 2007, 15:06
by xatu
Project : The Mana World
Compiler : GNU GCC Compiler (called directly)
Directory : C:\Documents and Settings\Administrador\Desktop\trunk\
--------------------------------------------------------------------------------
Switching to target: default
Compiling: src\main.cpp
In file included from C:/Dev-Cpp/include/guichan/keyinput.hpp:60,
from C:/Dev-Cpp/include/guichan/sdl/sdlinput.hpp:65,
from src\main.cpp:38:
C:/Dev-Cpp/include/guichan/key.hpp:128: error: expected identifier before numeric constant
C:/Dev-Cpp/include/guichan/key.hpp:128: error: expected `}' before numeric constant
C:/Dev-Cpp/include/guichan/key.hpp:128: error: expected unqualified-id before numeric constant
C:/Dev-Cpp/include/guichan/key.hpp:160: error: expected unqualified-id before "protected"
C:/Dev-Cpp/include/guichan/key.hpp:160: error: expected `,' or `;' before "protected"
C:/Dev-Cpp/include/guichan/key.hpp:163: error: expected declaration before '}' token
In file included from C:/Dev-Cpp/include/guichan/keyinput.hpp:60,
from C:/Dev-Cpp/include/guichan/sdl/sdlinput.hpp:65,
from src\main.cpp:38:
C:/Dev-Cpp/include/guichan/key.hpp:57:1: unterminated #ifndef
In file included from C:/Dev-Cpp/include/guichan/sdl/sdlinput.hpp:65,
from src\main.cpp:38:
C:/Dev-Cpp/include/guichan/keyinput.hpp:57:1: unterminated #ifndef
In file included from src\main.cpp:38:
C:/Dev-Cpp/include/guichan/sdl/sdlinput.hpp:57:1: unterminated #ifndef
Process terminated with status 1 (0 minutes, 7 seconds)
9 errors, 0 warnings

Posted: 21 Jun 2007, 18:27
by Crush
You stumbled upon a rare incompatiblity between the current guichan and some versions of the winapi headers.

You can fix it by adding the line

Code: Select all

#undef DELETE
before including the guichan headers in main.cpp.