Page 1 of 1

Not even compiling

Posted: 17 Jun 2006, 17:30
by GIAKEN
There are 150 errors when I compile with Dev-C++ with the SVN files I downloaded...

The first error is that it says that there isn't a being.h...I tried creating one and it said there was one and there is one in the same folder as being.cpp.

Posted: 17 Jun 2006, 17:32
by Matt
Works fine here.

Posted: 17 Jun 2006, 17:35
by GIAKEN
All of the errors are coming from:

being.cpp
sdlgraphics.hpp
gui.h

And a Build Error with Makefile.win

I am on Windows XP.

Posted: 17 Jun 2006, 20:02
by Crush
did you install the devpack that includes all the libraries you need to compile tmw and have you followed the instructions in its readme file?
http://forums.themanaworld.org/viewtopic.php?t=431

Posted: 17 Jun 2006, 22:06
by GIAKEN
I got loads of stuff...I'll just get that. Chances are I haven't.

Posted: 17 Jun 2006, 22:30
by GIAKEN
Where is its readme file? I'm still getting 150 errors.

Posted: 17 Jun 2006, 22:59
by Crush
you see the readme while installing it. important is this passage:
Warning:
Remember to add SDL include folder (i.e. C:\Dev-Cpp\include\SDL)
to your C++ includes.
here a more reliable download link for the devpak:
http://www.linux-development.org/tmw-bu ... svn.DevPak

Posted: 17 Jun 2006, 23:09
by GIAKEN
Ok I copied my SDL folder in the include folder and then opened the c++ folder in the include folder and pasted the SDL folder in there.
Compiler: Default compiler
Building Makefile: "C:\Documents and Settings\Harold Jr\Desktop\The Mana World\MW Client\Makefile.win"
Executing make...
make.exe -f "C:\Documents and Settings\Harold Jr\Desktop\The Mana World\MW Client\Makefile.win" all
g++.exe -D__DEBUG__ -c src/being.cpp -o obj/being.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include" -DUSE_OPENGL -Wall -w -fexceptions -fexpensive-optimizations -g3 -fmessage-length=0 -mmmx

In file included from src/being.cpp:23:
src/being.h:29:23: SDL_types.h: No such file or directory
In file included from src/being.cpp:23:
src/being.h:86: error: `Uint16' does not name a type
src/being.h:87: error: `Uint16' does not name a type
src/being.h:88: error: `Uint8' does not name a type
src/being.h:89: error: `Uint8' does not name a type
src/being.h:90: error: `Uint8' does not name a type
src/being.h:91: error: `Uint16' does not name a type
src/being.h:92: error: `Uint8' does not name a type
src/being.h:93: error: `Uint8' does not name a type
src/being.h:95: error: `Uint16' does not name a type
src/being.h:100: error: expected `)' before "id"

src/being.h:115: error: variable or field `setDestination' declared void
src/being.h:115: error: `setDestination' declared as a `virtual' field
src/being.h:115: error: expected `;' before '(' token
src/being.h:124: error: `Uint32' has not been declared
src/being.h:124: error: ISO C++ forbids declaration of `time' with no type
src/being.h:133: error: variable or field `setDamage' declared void
src/being.h:133: error: expected `;' before '(' token
src/being.h:153: error: variable or field `setHairColor' declared void
src/being.h:153: error: expected `;' before '(' token
src/being.h:158: error: `Uint16' does not name a type
src/being.h:165: error: variable or field `setHairStyle' declared void
src/being.h:165: error: expected `;' before '(' token
src/being.h:170: error: `Uint16' does not name a type
src/being.h:189: error: `Sint32' has not been declared
src/being.h:189: error: `Sint32' has not been declared
src/being.h:189: error: ISO C++ forbids declaration of `offsetX' with no type
src/being.h:189: error: ISO C++ forbids declaration of `offsetY' with no type
src/being.h:195: error: `Sint32' has not been declared
src/being.h:195: error: `Sint32' has not been declared
src/being.h:195: error: ISO C++ forbids declaration of `offsetX' with no type
src/being.h:195: error: ISO C++ forbids declaration of `offsetY' with no type
src/being.h:201: error: `Sint32' has not been declared
src/being.h:201: error: `Sint32' has not been declared
src/being.h:201: error: ISO C++ forbids declaration of `offsetX' with no type

src/being.h:201: error: ISO C++ forbids declaration of `offsetY' with no type
src/being.h:211: error: `Uint16' does not name a type
src/being.h:219: error: variable or field `setWeapon' declared void
src/being.h:219: error: expected `;' before '(' token
src/being.h:226: error: expected `;' before "void"
src/being.h:227: error: variable or field `setWeaponById' declared void
src/being.h:227: error: expected `;' before '(' token
src/being.h:232: error: `Uint16' does not name a type
src/being.h:239: error: variable or field `setWalkSpeed' declared void
src/being.h:239: error: expected `;' before '(' token
src/being.h:244: error: expected `;' before "Uint32"
src/being.h:244: error: `Uint32' does not name a type
src/being.h:251: error: variable or field `setId' declared void
src/being.h:251: error: expected `;' before '(' token
src/being.h:256: error: expected `;' before "void"
src/being.h:264: error: `Sint32' has not been declared
src/being.h:264: error: `Sint32' has not been declared
src/being.h:264: error: ISO C++ forbids declaration of `offsetX' with no type
src/being.h:264: error: ISO C++ forbids declaration of `offsetY' with no type
src/being.h:307: error: `Uint32' does not name a type
src/being.h:308: error: `Uint16' does not name a type
src/being.h:309: error: `Uint16' does not name a type
src/being.h:317: error: `Uint16' does not name a type
src/being.h:318: error: `Uint32' does not name a type
src/being.h:319: error: `Uint32' does not name a type
src/being.h:321: error: `Sint32' does not name a type
src/being.h: In member function `int Being::getPixelX() const':
src/being.h:270: error: `mPx' undeclared (first use this function)
src/being.h:270: error: (Each undeclared identifier is reported only once for each function it appears in.)
src/being.h: In member function `virtual int Being::getPixelY() const':
src/being.h:278: error: `mPy' undeclared (first use this function)
In file included from src/graphics.h:27,
from src/being.cpp:27:
C:/Dev-Cpp/include/guichan/sdl/sdlgraphics.hpp:61:17: SDL.h: No such file or directory
In file included from src/graphics.h:27,
from src/being.cpp:27:
C:/Dev-Cpp/include/guichan/sdl/sdlgraphics.hpp: At global scope:
C:/Dev-Cpp/include/guichan/sdl/sdlgraphics.hpp:92: error: variable or field `setTarget' declared void
C:/Dev-Cpp/include/guichan/sdl/sdlgraphics.hpp:92: error: `setTarget' declared as a `virtual' field
C:/Dev-Cpp/include/guichan/sdl/sdlgraphics.hpp:92: error: expected `;' before '(' token
C:/Dev-Cpp/include/guichan/sdl/sdlgraphics.hpp:99: error: ISO C++ forbids declaration of `SDL_Surface' with no type
C:/Dev-Cpp/include/guichan/sdl/sdlgraphics.hpp:99: error: `SDL_Surface' declared as a `virtual' field
C:/Dev-Cpp/include/guichan/sdl/sdlgraphics.hpp:99: error: expected `;' before '*' token
C:/Dev-Cpp/include/guichan/sdl/sdlgraphics.hpp:108: error: variable or field `drawSDLSurface' declared void
C:/Dev-Cpp/include/guichan/sdl/sdlgraphics.hpp:108: error: `drawSDLSurface' declared as a `virtual' field
C:/Dev-Cpp/include/guichan/sdl/sdlgraphics.hpp:108: error: expected `;' before '(' token
C:/Dev-Cpp/include/guichan/sdl/sdlgraphics.hpp:157: error: ISO C++ forbids declaration of `SDL_Surface' with no type
C:/Dev-Cpp/include/guichan/sdl/sdlgraphics.hpp:157: error: expected `;' before '*' token

src/being.cpp:39: error: expected `)' before "iX"
src/being.cpp:39: error: expected `,' or `;' before "iX"
src/being.cpp:44: error: expected `)' before "id"

src/being.cpp:44: error: expected `,' or `;' before "id"

src/being.cpp:71: error: variable or field `setDestination' declared void
src/being.cpp:71: error: `int Being::setDestination' is not a static member of `class Being'
src/being.cpp:71: error: `Uint16' was not declared in this scope
src/being.cpp:71: error: `Uint16' was not declared in this scope
src/being.cpp:72: error: initializer expression list treated as compound expression
src/being.cpp:72: error: expected `,' or `;' before '{' token
src/being.cpp: In member function `void Being::setPath(const Path&)':
src/being.cpp:88: error: `mAction' undeclared (first use this function)
src/being.cpp:91: error: `mWalkTime' undeclared (first use this function)
src/being.cpp: At global scope:
src/being.cpp:95: error: variable or field `setHairColor' declared void
src/being.cpp:95: error: `int Being::setHairColor' is not a static member of `class Being'
src/being.cpp:95: error: `Uint16' was not declared in this scope
src/being.cpp:96: error: expected `,' or `;' before '{' token
src/being.cpp:104: error: variable or field `setHairStyle' declared void
src/being.cpp:104: error: `int Being::setHairStyle' is not a static member of `class Being'
src/being.cpp:104: error: `Uint16' was not declared in this scope
src/being.cpp:105: error: expected `,' or `;' before '{' token
src/being.cpp:114: error: `Uint32' has not been declared
src/being.cpp:115: error: ISO C++ forbids declaration of `time' with no type
src/being.cpp: In member function `void Being::setSpeech(const std::string&, int)':
src/being.cpp:117: error: `mSpeechTime' undeclared (first use this function)
src/being.cpp: At global scope:
src/being.cpp:122: error: variable or field `setDamage' declared void

src/being.cpp:122: error: `int Being::setDamage' is not a static member of `class Being'
src/being.cpp:122: error: `Sint16' was not declared in this scope
src/being.cpp:122: error: `Uint32' was not declared in this scope

src/being.cpp:123: error: initializer expression list treated as compound expression
src/being.cpp:123: error: expected `,' or `;' before '{' token
src/being.cpp: In member function `void Being::nextStep()':
src/being.cpp:150: error: `mFrame' undeclared (first use this function)
src/being.cpp:154: error: `mAction' undeclared (first use this function)
src/being.cpp:161: error: `mDirection' undeclared (first use this function)
src/being.cpp:162: error: `mX' undeclared (first use this function)
src/being.cpp:166: error: `mY' undeclared (first use this function)
src/being.cpp:174: error: `mWalkTime' undeclared (first use this function)
src/being.cpp:174: error: `mWalkSpeed' undeclared (first use this function)
src/being.cpp: In member function `virtual void Being::logic()':
src/being.cpp:181: error: `mSpeechTime' undeclared (first use this function)
src/being.cpp:187: error: `mDamageTime' undeclared (first use this function)
src/being.cpp:193: error: `mPx' undeclared (first use this function)
src/being.cpp:193: error: `mX' undeclared (first use this function)
src/being.cpp:194: error: `mPy' undeclared (first use this function)
src/being.cpp:194: error: `mY' undeclared (first use this function)
src/being.cpp:196: error: `mEmotion' undeclared (first use this function)
src/being.cpp:198: error: `mEmotionTime' undeclared (first use this function)
src/being.cpp: In member function `virtual void Being::draw(Graphics*, int, int)':
src/being.cpp:210: error: `mPx' undeclared (first use this function)
src/being.cpp:211: error: `mPy' undeclared (first use this function)
src/being.cpp: At global scope:
src/being.cpp:217: error: `Sint32' has not been declared
src/being.cpp:217: error: `Sint32' has not been declared
src/being.cpp:218: error: ISO C++ forbids declaration of `offsetX' with no type
src/being.cpp:218: error: ISO C++ forbids declaration of `offsetY' with no type
src/being.cpp: In member function `void Being::drawEmotion(Graphics*, int, int)':
src/being.cpp:219: error: `mPx' undeclared (first use this function)
src/being.cpp:220: error: `mPy' undeclared (first use this function)
src/being.cpp:222: error: `mEmotion' undeclared (first use this function)
src/being.cpp: At global scope:
src/being.cpp:230: error: `Sint32' has not been declared

src/being.cpp:230: error: `Sint32' has not been declared
src/being.cpp:231: error: ISO C++ forbids declaration of `offsetX' with no type
src/being.cpp:231: error: ISO C++ forbids declaration of `offsetY' with no type
src/being.cpp: In member function `void Being::drawSpeech(Graphics*, int, int)':
src/being.cpp:232: error: `mPx' undeclared (first use this function)
src/being.cpp:233: error: `mPy' undeclared (first use this function)
src/being.cpp:261: error: `mDamageTime' undeclared (first use this function)
src/being.cpp: At global scope:
src/being.cpp:280: error: variable or field `setWeaponById' declared void
src/being.cpp:280: error: `int Being::setWeaponById' is not a static member of `class Being'
src/being.cpp:280: error: `Uint16' was not declared in this scope
src/being.cpp:281: error: expected `,' or `;' before '{' token
src/being.cpp: In member function `int Being::getOffset(char, char) const':
src/being.cpp:313: error: `mAction' undeclared (first use this function)
src/being.cpp:313: error: `mDirection' undeclared (first use this function)
src/being.cpp:317: error: `mWalkTime' undeclared (first use this function)
src/being.cpp:317: error: `mWalkSpeed' undeclared (first use this function)

make.exe: *** [obj/being.o] Error 1

Execution terminated
That's my error log still.

Posted: 18 Jun 2006, 00:54
by Crush
the root of problem is obviously "SDL_types.h: No such file or directory". thats why all the fixed size integer types are unknown.
GIAKEN wrote:Ok I copied my SDL folder in the include folder and then opened the c++ folder in the include folder and pasted the SDL folder in there.
Why did you do THAT instead of just following the instructions word by word?

i would suggest you to uninstall DevC++ with all the mess you've created.
then do a clean reinstall, add the devpack, redownload the tmw sources, open the project, add the sdl include folder at Project->Project Options->Directories->Include Directories and then try to build it again.

Posted: 18 Jun 2006, 02:24
by GIAKEN
Thanks Crush ^_^

Sorry for my minimal knowledge.

Posted: 18 Jun 2006, 02:51
by GIAKEN
Ok I actually got the .EXE running. Then it said it couldn't load the player spriteset.

Posted: 18 Jun 2006, 14:12
by Rotonen
Be careful of from where you run it. (Or is this related to PhysFS?)

Posted: 18 Jun 2006, 17:34
by GIAKEN
Sorry for posting this in the wrong spot x__x

I am running it in the tmw folder where it compiled to.