Graphic trouble,

Ask for help regarding any technical issue or report any bug or OS independent issues.
User avatar
ElvenProgrammer
TMW Adviser
TMW Adviser
Posts: 2526
Joined: Tue Apr 13, 2004 8:11 pm
Location: Italy
Contact:

Post by ElvenProgrammer » Fri Jan 04, 2008 1:59 pm

i386
User avatar
eaumer
Peon
Peon
Posts: 51
Joined: Fri Nov 09, 2007 3:17 pm

Post by eaumer » Fri Jan 04, 2008 3:38 pm

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

Post by Crush » Sat Jan 05, 2008 5:30 am

The archive labled "platform-independent" is the sourcecode.
  • 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.
User avatar
ElvenProgrammer
TMW Adviser
TMW Adviser
Posts: 2526
Joined: Tue Apr 13, 2004 8:11 pm
Location: Italy
Contact:

Post by ElvenProgrammer » Mon Jan 07, 2008 10:48 am

Could you try adding #undef DELETE at the top of src/gui/button.h?
User avatar
eaumer
Peon
Peon
Posts: 51
Joined: Fri Nov 09, 2007 3:17 pm

Post by eaumer » Wed Jan 09, 2008 7:15 pm

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
User avatar
ElvenProgrammer
TMW Adviser
TMW Adviser
Posts: 2526
Joined: Tue Apr 13, 2004 8:11 pm
Location: Italy
Contact:

Post by ElvenProgrammer » Thu Jan 10, 2008 9:12 am

Are they really missing or the compiler messed up? Look into src for the missing flies.
User avatar
eaumer
Peon
Peon
Posts: 51
Joined: Fri Nov 09, 2007 3:17 pm

Post by eaumer » Thu Jan 10, 2008 6:34 pm

They are really missing in ./src.
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: Thu Aug 25, 2005 5:08 pm
Location: Germany

Post by Crush » Thu Jan 10, 2008 6:43 pm

Remove these files from your project in Code::Blocks.
  • 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.
User avatar
eaumer
Peon
Peon
Posts: 51
Joined: Fri Nov 09, 2007 3:17 pm

Post by eaumer » Mon Feb 11, 2008 7:13 pm

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?
Post Reply