Compile dev c++ i need help

Ask for help regarding any technical issue or report any bug or OS independent issues.
Post Reply
Habari
Novice
Novice
Posts: 249
Joined: 25 Nov 2007, 16:04

Compile dev c++ i need help

Post by Habari »

hi , i have tried to compile the latest TMW version from SVN ,
i am using dev c++ 4.9.9.2 bloodshet for windows xp ,but i gives errors.

this is the log:

Code: Select all

Compiler: Default compiler
Building Makefile: "C:\Documents and Settings\Thomas\Desktop\TMW HACKING\tmw\Makefile.win"
Executing  make...
make.exe -f "C:\Documents and Settings\Thomas\Desktop\TMW HACKING\tmw\Makefile.win" all
g++.exe -D__DEBUG__ -c src/being.cpp -o src/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:115: error: `Uint16' does not name a type
src/being.h:116: error: `Uint16' does not name a type
src/being.h:118: error: `Uint16' does not name a type
src/being.h:119: error: `Uint8' does not name a type
src/being.h:120: error: `Uint8' does not name a type
src/being.h:122: error: `Uint16' does not name a type

src/being.h:142: error: variable or field `setDestination' declared void
src/being.h:142: error: expected `;' before '(' token
src/being.h:147: error: variable or field `adjustCourse' declared void
src/being.h:147: error: expected `;' before '(' token

src/being.h:152: error: variable or field `adjustCourse' declared void
src/being.h:152: error: expected `;' before '(' token
src/being.h:161: error: `Uint32' has not been declared
src/being.h:161: error: ISO C++ forbids declaration of `time' with no type
src/being.h:229: error: `Uint16' does not name a type
src/being.h:236: error: variable or field `setWalkSpeed' declared void
src/being.h:236: error: expected `;' before '(' token
src/being.h:241: error: expected `;' before "Uint16"
src/being.h:241: error: `Uint16' does not name a type
src/being.h:248: error: variable or field `setId' declared void
src/being.h:248: error: expected `;' before '(' token
src/being.h:253: error: expected `;' before "void"
src/being.h:270: error: variable or field `setDirection' declared void
src/being.h:270: error: expected `;' before '(' token
src/being.h:335: error: `Uint16' does not name a type
src/being.h:336: error: `Uint16' does not name a type
src/being.h:337: error: `Uint16' does not name a type
src/being.h:338: error: `Uint8' does not name a type
src/being.h:339: error: `Uint8' does not name a type
src/being.h:348: error: `Uint32' does not name a type
src/being.h:349: error: `Sint32' does not name a type

src/being.h:358: error: `Sint16' does not name a type
src/being.h:359: error: `Uint16' does not name a type

src/being.h: In member function `SpriteDirection Being::getSpriteDirection() const':
src/being.h:265: error: `mSpriteDirection' undeclared (first use this function)
src/being.h:265: error: (Each undeclared identifier is reported only once for each function it appears in.)
src/being.h: In member function `int Being::getPixelX() const':
src/being.h:284: error: `mPx' undeclared (first use this function)
src/being.h: In member function `virtual int Being::getPixelY() const':
src/being.h:292: error: `mPy' undeclared (first use this function)
src/being.h: In member function `int Being::getXOffset() const':
src/being.h:298: error: `mStepX' undeclared (first use this function)
src/being.h: In member function `int Being::getYOffset() const':
src/being.h:304: error: `mStepY' undeclared (first use this function)

In file included from src/being.cpp:31:
src/game.h:30:17: SDL.h: No such file or directory
In file included from src/being.cpp:31:
src/game.h: At global scope:
src/game.h:73: error: `SDL_TimerID' does not name a type
src/game.h:74: error: `SDL_TimerID' does not name a type

In file included from src/graphics.h:27,
                 from src/being.cpp:32:
C:/Dev-Cpp/include/guichan/sdl/sdlgraphics.hpp:60:17: SDL.h: No such file or directory
In file included from src/graphics.h:27,
                 from src/being.cpp:32:
C:/Dev-Cpp/include/guichan/sdl/sdlgraphics.hpp:93: error: variable or field `setTarget' declared void
C:/Dev-Cpp/include/guichan/sdl/sdlgraphics.hpp:93: error: `setTarget' declared as a `virtual' field
C:/Dev-Cpp/include/guichan/sdl/sdlgraphics.hpp:93: error: expected `;' before '(' token
C:/Dev-Cpp/include/guichan/sdl/sdlgraphics.hpp:100: error: ISO C++ forbids declaration of `SDL_Surface' with no type

C:/Dev-Cpp/include/guichan/sdl/sdlgraphics.hpp:100: error: `SDL_Surface' declared as a `virtual' field
C:/Dev-Cpp/include/guichan/sdl/sdlgraphics.hpp:100: error: expected `;' before '*' token
C:/Dev-Cpp/include/guichan/sdl/sdlgraphics.hpp:109: error: variable or field `drawSDLSurface' declared void
C:/Dev-Cpp/include/guichan/sdl/sdlgraphics.hpp:109: error: `drawSDLSurface' declared as a `virtual' field
C:/Dev-Cpp/include/guichan/sdl/sdlgraphics.hpp:109: error: expected `;' before '(' token

C:/Dev-Cpp/include/guichan/sdl/sdlgraphics.hpp:163: error: ISO C++ forbids declaration of `SDL_Surface' with no type
C:/Dev-Cpp/include/guichan/sdl/sdlgraphics.hpp:163: error: expected `;' before '*' token

src/being.cpp: In constructor `Being::Being(int, int, Map*)':
src/being.cpp:50: error: class `Being' does not have any field named `mJob'
src/being.cpp:51: error: class `Being' does not have any field named `mX'
src/being.cpp:51: error: class `Being' does not have any field named `mY'
src/being.cpp:53: error: class `Being' does not have any field named `mWalkTime'
src/being.cpp:54: error: class `Being' does not have any field named `mEmotion'
src/being.cpp:54: error: class `Being' does not have any field named `mEmotionTime'
src/being.cpp:55: error: class `Being' does not have any field named `mAttackSpeed'
src/being.cpp:56: error: class `Being' does not have any field named `mId'
src/being.cpp:57: error: class `Being' does not have any field named `mWalkSpeed'
src/being.cpp:58: error: class `Being' does not have any field named `mSpeedModifier'
src/being.cpp:59: error: class `Being' does not have any field named `mSpriteDirection'
src/being.cpp:59: error: class `Being' does not have any field named `mDirection'
src/being.cpp:62: error: class `Being' does not have any field named `mSpeechTime'
src/being.cpp:63: error: class `Being' does not have any field named `mPx'
src/being.cpp:63: error: class `Being' does not have any field named `mPy'

src/being.cpp: At global scope:
src/being.cpp:101: error: variable or field `adjustCourse' declared void

src/being.cpp:101: error: `int Being::adjustCourse' is not a static member of `class Being'
src/being.cpp:101: error: `Uint16' was not declared in this scope

src/being.cpp:101: error: `Uint16' was not declared in this scope
src/being.cpp:101: error: `Uint16' was not declared in this scope
src/being.cpp:101: error: `Uint16' was not declared in this scope
src/being.cpp:102: error: initializer expression list treated as compound expression
src/being.cpp:102: error: expected `,' or `;' before '{' token
src/being.cpp:237: error: variable or field `adjustCourse' declared void
src/being.cpp:237: error: `int Being::adjustCourse' is not a static member of `class Being'
src/being.cpp:237: error: `Uint16' was not declared in this scope
src/being.cpp:237: error: `Uint16' was not declared in this scope
src/being.cpp:238: error: initializer expression list treated as compound expression
src/being.cpp:238: error: expected `,' or `;' before '{' token
src/being.cpp:246: error: variable or field `setDestination' declared void
src/being.cpp:246: error: `int Being::setDestination' is not a static member of `class Being'
src/being.cpp:246: error: `Uint16' was not declared in this scope

src/being.cpp:246: error: `Uint16' was not declared in this scope
src/being.cpp:247: error: initializer expression list treated as compound expression
src/being.cpp:247: error: expected `,' or `;' before '{' token
src/being.cpp: In member function `void Being::setPath(const Path&, int)':
src/being.cpp:261: error: `mSpeedModifier' undeclared (first use this function)
src/being.cpp:268: error: `mX' undeclared (first use this function)
src/being.cpp:268: error: `mY' undeclared (first use this function)

src/being.cpp:282: error: `mWalkTime' undeclared (first use this function)
src/being.cpp:283: error: `mStepTime' undeclared (first use this function)
src/being.cpp: At global scope:
src/being.cpp:289: error: `Uint32' has not been declared
src/being.cpp:290: 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:292: error: `mSpeechTime' undeclared (first use this function)

src/being.cpp: In member function `virtual void Being::takeDamage(int)':
src/being.cpp:324: error: `mPx' undeclared (first use this function)

src/being.cpp:324: error: `mPy' undeclared (first use this function)
src/being.cpp: At global scope:
src/being.cpp:421: error: variable or field `setDirection' declared void
src/being.cpp:421: error: `int Being::setDirection' is not a static member of `class Being'
src/being.cpp:421: error: `Uint8' was not declared in this scope

src/being.cpp:422: error: expected `,' or `;' before '{' token

src/being.cpp: In member function `virtual void Being::nextStep()':
src/being.cpp:470: error: `mStepX' undeclared (first use this function)
src/being.cpp:470: error: `mX' undeclared (first use this function)
src/being.cpp:471: error: `mStepY' undeclared (first use this function)
src/being.cpp:471: error: `mY' undeclared (first use this function)
src/being.cpp:479: error: `setDirection' undeclared (first use this function)

src/being.cpp:484: error: `mWalkTime' undeclared (first use this function)
src/being.cpp:484: error: `mStepTime' undeclared (first use this function)
src/being.cpp:485: error: `mWalkSpeed' undeclared (first use this function)
src/being.cpp:486: error: `mSpeedModifier' undeclared (first use this function)
src/being.cpp: In member function `virtual void Being::logic()':
src/being.cpp:493: error: `mWalkTime' undeclared (first use this function)
src/being.cpp:493: error: `mStepTime' undeclared (first use this function)

src/being.cpp:499: error: `mSpeechTime' undeclared (first use this function)
src/being.cpp:503: error: `mPx' undeclared (first use this function)
src/being.cpp:503: error: `mX' undeclared (first use this function)
src/being.cpp:504: error: `mPy' undeclared (first use this function)
src/being.cpp:504: error: `mY' undeclared (first use this function)
src/being.cpp:506: error: `mEmotion' undeclared (first use this function)
src/being.cpp:508: error: `mEmotionTime' undeclared (first use this function)
src/being.cpp: In member function `virtual void Being::draw(Graphics*, int, int) const':
src/being.cpp:542: error: `mPx' undeclared (first use this function)
src/being.cpp:543: error: `mPy' undeclared (first use this function)
src/being.cpp: In member function `void Being::drawEmotion(Graphics*, int, int)':
src/being.cpp:557: error: `mEmotion' undeclared (first use this function)
src/being.cpp:560: error: `mPx' undeclared (first use this function)
src/being.cpp:561: error: `mPy' undeclared (first use this function)
src/being.cpp: In member function `void Being::drawSpeech(Graphics*, int, int)':

src/being.cpp:569: error: `mPx' undeclared (first use this function)
src/being.cpp:570: error: `mPy' undeclared (first use this function)
src/being.cpp:573: error: `mSpeechTime' undeclared (first use this function)
src/being.cpp: In member function `int Being::getOffset(int) const':

src/being.cpp:594: error: `mWalkTime' undeclared (first use this function)
src/being.cpp:594: error: `mStepTime' undeclared (first use this function)

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

Execution terminated
please help what am i doing wrong how do i compile the code the right way?
thank you
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: 25 Aug 2005, 16:08
Location: Germany

Post by Crush »

DevC++ isn't supported anymore. The project files are outdated. When you don't cling too much to DevC++ I would suggest you to give Code::Blocks a try. When you insist on using DevC++ you should remove all sourcecode and header files from the project and add all files from the src directory manually to the project.

It also seems like you forgot to set the include path for the SDL headers like it is described during the installation of the DevPac (You did install the DevPac, didn't you?).
  • 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.
Habari
Novice
Novice
Posts: 249
Joined: 25 Nov 2007, 16:04

Post by Habari »

ok , but how do i install the dev pack on code:blocks???
User avatar
ElvenProgrammer
Founder
Founder
Posts: 2526
Joined: 13 Apr 2004, 19:11
Location: Italy
Contact:

Post by ElvenProgrammer »

The DevPak is just a .tar.bz2 package renamed. Just exctract the lib/include folders in your MinGW installation.
User avatar
Bjørn
Manasource
Manasource
Posts: 1438
Joined: 09 Dec 2004, 18:50
Location: North Rhine-Westphalia, Germany
Contact:

Post by Bjørn »

ElvenProgrammer wrote:The DevPak is just a .tar.bz2 package renamed. Just exctract the lib/include folders in your MinGW installation.
When nobody uses Dev-C++ anymore, I would suggest using a plain .zip file instead of a DevPak for providing the dependencies.
Post Reply