trunk error [codeblocks]

Ask for help regarding any technical issue or report any bug or OS independent issues.
Post Reply
xatu
Peon
Peon
Posts: 13
Joined: 06 Mar 2007, 21:09

trunk error [codeblocks]

Post by xatu » 21 Jun 2007, 15:06

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
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: 25 Aug 2005, 17:08
Location: Germany

Post by Crush » 21 Jun 2007, 18:27

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.
  • former Manasource Programmer
  • former TMW Pixel artist
  • NOT a game master

Please do not send me any inquiries regarding player accounts on TMW.


You might have heard a certain rumor about me. This rumor is completely false. You might also have heard the other rumor about me. This rumor is 100% accurate.
Post Reply