Page 2 of 2

Posted: 04 Jan 2008, 12:59
by ElvenProgrammer
i386

Posted: 04 Jan 2008, 14:38
by eaumer
mmh...errors again

In file included from C:/Program Files/CodeBlocks/include/guichan/keyevent.hpp:61,
from C:/Program Files/CodeBlocks/include/guichan/keylistener.hpp:60,
from C:/Program Files/CodeBlocks/include/guichan/widgets/button.hpp:63,
from C:\Program Files\TMW svn\src\/gui/button.h:29,
from C:\Program Files\TMW svn\src\/gui/setup_keyboard.h:28,
from C:\Program Files\TMW svn\src\/keyboardconfig.h:29,
from C:\Program Files\TMW svn\src\main.cpp:50:
C:/Program Files/CodeBlocks/include/guichan/key.hpp:128: error: expected identifier before numeric constant
C:/Program Files/CodeBlocks/include/guichan/key.hpp:128: error: expected `}' before numeric constant
C:/Program Files/CodeBlocks/include/guichan/key.hpp:128: error: expected unqualified-id before numeric constant
C:/Program Files/CodeBlocks/include/guichan/key.hpp:160: error: expected unqualified-id before "protected"
C:/Program Files/CodeBlocks/include/guichan/key.hpp:160: error: expected `,' or `;' before "protected"
C:/Program Files/CodeBlocks/include/guichan/key.hpp:163: error: expected declaration before '}' token
In file included from C:/Program Files/CodeBlocks/include/guichan/keyevent.hpp:61,
from C:/Program Files/CodeBlocks/include/guichan/keylistener.hpp:60,
from C:/Program Files/CodeBlocks/include/guichan/widgets/button.hpp:63,
from C:\Program Files\TMW svn\src\/gui/button.h:29,
from C:\Program Files\TMW svn\src\/gui/setup_keyboard.h:28,
from C:\Program Files\TMW svn\src\/keyboardconfig.h:29,
from C:\Program Files\TMW svn\src\main.cpp:50:
C:/Program Files/CodeBlocks/include/guichan/key.hpp:57:1: unterminated #ifndef
In file included from C:/Program Files/CodeBlocks/include/guichan/keylistener.hpp:60,
from C:/Program Files/CodeBlocks/include/guichan/widgets/button.hpp:63,
from C:\Program Files\TMW svn\src\/gui/button.h:29,
from C:\Program Files\TMW svn\src\/gui/setup_keyboard.h:28,
from C:\Program Files\TMW svn\src\/keyboardconfig.h:29,
from C:\Program Files\TMW svn\src\main.cpp:50:
C:/Program Files/CodeBlocks/include/guichan/keyevent.hpp:57:1: unterminated #ifndef
In file included from C:/Program Files/CodeBlocks/include/guichan/widgets/button.hpp:63,
from C:\Program Files\TMW svn\src\/gui/button.h:29,
from C:\Program Files\TMW svn\src\/gui/setup_keyboard.h:28,
from C:\Program Files\TMW svn\src\/keyboardconfig.h:29,
from C:\Program Files\TMW svn\src\main.cpp:50:
C:/Program Files/CodeBlocks/include/guichan/keylistener.hpp:57:1: unterminated #ifndef
In file included from C:\Program Files\TMW svn\src\/gui/button.h:29,
from C:\Program Files\TMW svn\src\/gui/setup_keyboard.h:28,
from C:\Program Files\TMW svn\src\/keyboardconfig.h:29,
from C:\Program Files\TMW svn\src\main.cpp:50:
C:/Program Files/CodeBlocks/include/guichan/widgets/button.hpp:57:1: unterminated #ifndef
In file included from C:\Program Files\TMW svn\src\/gui/setup_keyboard.h:28,
from C:\Program Files\TMW svn\src\/keyboardconfig.h:29,
from C:\Program Files\TMW svn\src\main.cpp:50:
C:\Program Files\TMW svn\src\/gui/button.h:24:1: unterminated #ifndef
In file included from C:\Program Files\TMW svn\src\/keyboardconfig.h:29,
from C:\Program Files\TMW svn\src\main.cpp:50:
C:\Program Files\TMW svn\src\/gui/setup_keyboard.h:24:1: unterminated #ifndef
In file included from C:\Program Files\TMW svn\src\main.cpp:50:
C:\Program Files\TMW svn\src\/keyboardconfig.h:24:1: unterminated #ifndef
Process terminated with status 1 (2 minutes, 44 seconds)
13 errors, 0 warnings

Posted: 05 Jan 2008, 04:30
by Crush
The archive labled "platform-independent" is the sourcecode.

Posted: 07 Jan 2008, 09:48
by ElvenProgrammer
Could you try adding #undef DELETE at the top of src/gui/button.h?

Posted: 09 Jan 2008, 18:15
by eaumer
i did it :



-------------- Build: default in tmw ---------------

WARNING: Can't read file's timestamp: C:\TMW\src\animation.cpp
WARNING: Can't read file's timestamp: C:\TMW\src\base64.cpp
WARNING: Can't read file's timestamp: C:\TMW\src\net\equipmenthandler.cpp
WARNING: Can't read file's timestamp: C:\TMW\src\resources\itemmanager.cpp
WARNING: Can't read file's timestamp: C:\TMW\src\resources\openglsdlimageloader.cpp
WARNING: Can't read file's timestamp: C:\TMW\src\resources\sdlimageloader.cpp
WARNING: Can't read file's timestamp: C:\TMW\src\resources\spriteset.cpp
Linking executable: tmw.exe
mingw32-g++.exe: .objs\src\animation.o: No such file or directory
mingw32-g++.exe: .objs\src\base64.o: No such file or directory
mingw32-g++.exe: .objs\src\net\equipmenthandler.o: No such file or directory
mingw32-g++.exe: .objs\src\resources\itemmanager.o: No such file or directory
mingw32-g++.exe: .objs\src\resources\openglsdlimageloader.o: No such file or directory
mingw32-g++.exe: .objs\src\resources\sdlimageloader.o: No such file or directory
mingw32-g++.exe: .objs\src\resources\spriteset.o: No such file or directory
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings


and i can't run. i miss something, but what? some files seem to be missing too.

thx for your help

Posted: 10 Jan 2008, 08:12
by ElvenProgrammer
Are they really missing or the compiler messed up? Look into src for the missing flies.

Posted: 10 Jan 2008, 17:34
by eaumer
They are really missing in ./src.

Posted: 10 Jan 2008, 17:43
by Crush
Remove these files from your project in Code::Blocks.

Posted: 11 Feb 2008, 18:13
by eaumer
I removed the files and then the log :

-------------- Build: default in tmw ---------------

Linking executable: tmw.exe
.objs\src\animatedsprite.o:animatedsprite.cpp:(.text+0x3aa): undefined reference to `SpriteDef::getAction(SpriteAction) const'
.objs\src\animatedsprite.o:animatedsprite.cpp:(.text+0x3d5): undefined reference to `Action::getAnimation(int) const'
.objs\src\animatedsprite.o:animatedsprite.cpp:(.text+0x4c8): undefined reference to `Animation::isTerminator(Frame const&)'
.objs\src\animatedsprite.o:animatedsprite.cpp:(.text+0x577): undefined reference to `Animation::isTerminator(Frame const&)'
.objs\src\animatedsprite.o:animatedsprite.cpp:(.text+0x64d): undefined reference to `Action::getAnimation(int) const'
.objs\src\being.o:being.cpp:(.text+0x2890): undefined reference to `Particle::addEffect(std::string const&, int, int)'
.objs\src\being.o:being.cpp:(.text+0x29e2): undefined reference to `Particle::addTextSplashEffect(std::string const&, int, int, int, gcn::Font*, int, int)'
.objs\src\being.o:being.cpp:(.text+0x31ca): undefined reference to `ImageSet::get(unsigned int)'
.objs\src\configuration.o:configuration.cpp:(.text+0x2c3): undefined reference to `XML::getProperty(_xmlNode*, char const*, std::string const&)'
.objs\src\configuration.o:configuration.cpp:(.text+0x36e): undefined reference to `XML::getProperty(_xmlNode*, char const*, std::string const&)'
.objs\src\engine.o:engine.cpp:(.text+0x1d9): undefined reference to `Particle::clear()'
.objs\src\engine.o:engine.cpp:(.text+0x703): undefined reference to `Particle::setMap(Map*)'
.objs\src\engine.o:engine.cpp:(.text+0x717): undefined reference to `Viewport::setMap(Map*)'
.objs\src\game.o:game.cpp:(.text+0x8e5): undefined reference to `ItemShortcutWindow::ItemShortcutWindow()'
.objs\src\game.o:game.cpp:(.text+0x11e1): undefined reference to `ChannelManager::ChannelManager()'
.objs\src\game.o:game.cpp:(.text+0x124a): undefined reference to `Particle::Particle(Map*)'
.objs\src\game.o:game.cpp:(.text+0x1290): undefined reference to `Particle::setupEngine()'
.objs\src\game.o:game.cpp:(.text+0x1d91): undefined reference to `ChannelManager::ChannelManager()'
.objs\src\game.o:game.cpp:(.text+0x1dfa): undefined reference to `Particle::Particle(Map*)'
.objs\src\game.o:game.cpp:(.text+0x1e40): undefined reference to `Particle::setupEngine()'
.objs\src\game.o:game.cpp:(.text+0x2522): undefined reference to `ChannelManager::~ChannelManager()'
.objs\src\game.o:game.cpp:(.text+0x25c6): undefined reference to `Viewport::setMap(Map*)'
.objs\src\game.o:game.cpp:(.text+0x2988): undefined reference to `ChannelManager::~ChannelManager()'
.objs\src\game.o:game.cpp:(.text+0x2a2c): undefined reference to `Viewport::setMap(Map*)'
.objs\src\game.o:game.cpp:(.text+0x2dee): undefined reference to `ChannelManager::~ChannelManager()'
.objs\src\game.o:game.cpp:(.text+0x2e92): undefined reference to `Viewport::setMap(Map*)'
.objs\src\game.o:game.cpp:(.text+0x3ebe): undefined reference to `KeyboardConfig::callbackNewKey()'
.objs\src\game.o:game.cpp:(.text+0x43df): undefined reference to `QuitDialog::QuitDialog(bool*, QuitDialog**)'
.objs\src\game.o:game.cpp:(.text+0x4495): undefined reference to `KeyboardConfig::getKeyIndex(int) const'
.objs\src\game.o:game.cpp:(.text+0x44bc): undefined reference to `itemShortcut'
.objs\src\game.o:game.cpp:(.text+0x44ce): undefined reference to `ItemShortcut::useItem(int)'
.objs\src\game.o:game.cpp:(.text+0x4bca): undefined reference to `KeyboardConfig::refreshActiveKeys()'
.objs\src\game.o:game.cpp:(.text+0x4c0b): undefined reference to `KeyboardConfig::isKeyActive(int)'
.objs\src\game.o:game.cpp:(.text+0x4c54): undefined reference to `KeyboardConfig::isKeyActive(int)'
.objs\src\game.o:game.cpp:(.text+0x4c9b): undefined reference to `KeyboardConfig::isKeyActive(int)'
.objs\src\game.o:game.cpp:(.text+0x4ce4): undefined reference to `KeyboardConfig::isKeyActive(int)'
.objs\src\game.o:game.cpp:(.text+0x4d43): undefined reference to `KeyboardConfig::isKeyActive(int)'
.objs\src\gui\buy.o:buy.cpp:(.text+0x69f): undefined reference to `strprintf(char const*, ...)'
.objs\src\gui\buy.o:buy.cpp:(.text+0xf8e): undefined reference to `strprintf(char const*, ...)'
.objs\src\gui\buy.o:buy.cpp:(.text+0x1083): undefined reference to `strprintf(char const*, ...)'
.objs\src\gui\buy.o:buy.cpp:(.text+0x1f3d): undefined reference to `strprintf(char const*, ...)'
.objs\src\gui\buy.o:buy.cpp:(.text+0x282c): undefined reference to `strprintf(char const*, ...)'
.objs\src\gui\buy.o:buy.cpp:(.text+0x2921): more undefined references to `strprintf(char const*, ...)' follow
.objs\src\gui\buy.o:buy.cpp:(.text$_ZN10LayoutCell12setRowHeightEii[LayoutCell::setRowHeight(int, int)]+0xd): undefined reference to `LayoutCell::getArray()'
.objs\src\gui\buy.o:buy.cpp:(.text$_ZN10LayoutCell12setRowHeightEii[LayoutCell::setRowHeight(int, int)]+0x25): undefined reference to `LayoutArray::setRowHeight(int, int)'
.objs\src\gui\buy.o:buy.cpp:(.text$_ZNK4Item7getInfoEv[Item::getInfo() const]+0xf): undefined reference to `ItemDB::get(int)'
.objs\src\gui\char_select.o:char_select.cpp:(.text+0x15a8): undefined reference to `strprintf(char const*, ...)'
.objs\src\gui\char_select.o:char_select.cpp:(.text+0x169d): undefined reference to `strprintf(char const*, ...)'
.objs\src\gui\char_select.o:char_select.cpp:(.text+0x1792): undefined reference to `strprintf(char const*, ...)'
.objs\src\gui\char_select.o:char_select.cpp:(.text+0x1b8c): undefined reference to `ContainerPlacer::operator()(int, int, gcn::Widget*, int, int)'
.objs\src\gui\char_select.o:char_select.cpp:(.text+0x1bd4): undefined reference to `ContainerPlacer::operator()(int, int, gcn::Widget*, int, int)'
Process terminated with status 1 (0 minutes, 12 seconds)
50 errors, 0 warnings


Is the project outdated ? How can I do?
The project file is outdated. Add the missing and remove the nonexistent sourcecode files from your project.
which files?