W32 compilation error

Ask for help regarding any technical issue or report any bug or OS independent issues.
Post Reply
User avatar
AoH
Peon
Peon
Posts: 25
Joined: 18 Oct 2005, 05:53

W32 compilation error

Post by AoH » 21 Jan 2006, 15:48

Hi,
I have thir error when i compile with devcpp anyone can help me ?


Compilateur: Default compiler
Building Makefile: "D:\Cyria Project\tmw\Makefile.win"
Exécution de make...
make.exe -f "D:\Cyria Project\tmw\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 -w -fexceptions -fexpensive-optimizations -O3 -g3 -fmessage-length=0 -mmmx

In file included from src/being.cpp:24:
src/being.h:29:23: SDL_types.h: No such file or directory
In file included from src/being.cpp:24:
src/being.h:84: error: `Uint16' does not name a type
src/being.h:85: error: `Uint16' does not name a type
src/being.h:86: error: `Uint8' does not name a type
src/being.h:87: error: `Uint8' does not name a type
src/being.h:88: error: `Uint8' does not name a type
src/being.h:89: error: `Sint32' does not name a type
src/being.h:90: error: `Uint16' does not name a type

src/being.h:91: error: `Uint8' does not name a type
src/being.h:92: error: `Uint8' does not name a type
src/being.h:94: error: `Uint16' does not name a type

src/being.h:114: error: variable or field `setDestination' declared void

src/being.h:114: error: expected `;' before '(' token
src/being.h:123: error: `Uint32' has not been declared
src/being.h:123: error: ISO C++ forbids declaration of `time' with no type
src/being.h:132: error: variable or field `setDamage' declared void

src/being.h:132: error: expected `;' before '(' token

src/being.h:152: error: variable or field `setHairColor' declared void
src/being.h:152: error: expected `;' before '(' token
src/being.h:157: error: `Uint16' does not name a type
src/being.h:164: error: variable or field `setHairStyle' declared void
src/being.h:164: error: expected `;' before '(' token
src/being.h:169: error: `Uint16' does not name a type

src/being.h:188: error: `Sint32' has not been declared
src/being.h:188: error: `Sint32' has not been declared

src/being.h:188: error: ISO C++ forbids declaration of `offsetX' with no type
src/being.h:188: error: ISO C++ forbids declaration of `offsetY' with no type
src/being.h:198: error: `Uint16' does not name a type
src/being.h:206: error: variable or field `setWeapon' declared void
src/being.h:206: error: expected `;' before '(' token
src/being.h:213: error: expected `;' before "void"

src/being.h:214: error: variable or field `setWeaponById' declared void
src/being.h:214: error: expected `;' before '(' token

src/being.h:219: error: `Uint16' does not name a type
src/being.h:226: error: variable or field `setWalkSpeed' declared void
src/being.h:226: error: expected `;' before '(' token
src/being.h:231: error: expected `;' before "Uint32"
src/being.h:231: error: `Uint32' does not name a type
src/being.h:238: error: variable or field `setId' declared void
src/being.h:238: error: expected `;' before '(' token
src/being.h:243: error: expected `;' before "void"
src/being.h:251: error: `Sint32' has not been declared
src/being.h:251: error: `Sint32' has not been declared
src/being.h:251: error: ISO C++ forbids declaration of `offsetX' with no type
src/being.h:251: error: ISO C++ forbids declaration of `offsetY' with no type

src/being.h:286: error: `Uint32' does not name a type
src/being.h:287: error: `Uint16' does not name a type
src/being.h:288: error: `Uint16' does not name a type

src/being.h:296: error: `Uint16' does not name a type
src/being.h:297: error: `Uint32' does not name a type
src/being.h:298: error: `Uint32' does not name a type

src/being.h:300: error: `Sint32' does not name a type

src/being.h: In member function `int Being::getPixelX() const':
src/being.h:257: error: `mPx' undeclared (first use this function)
src/being.h:257: 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:265: error: `mPy' undeclared (first use this function)
src/being.h: At global scope:
src/being.h:307: error: `Uint32' was not declared in this scope
src/being.h:313: error: redefinition of `Being*findNode'

src/being.h:307: error: `Being*findNode' previously defined here

src/being.h:313: error: `Uint16' was not declared in this scope
src/being.h:313: error: `Uint16' was not declared in this scope

src/being.h:319: error: redefinition of `Being*findNode'
src/being.h:307: error: `Being*findNode' previously defined here
src/being.h:319: error: `Uint16' was not declared in this scope
src/being.h:319: error: `Uint16' was not declared in this scope
src/being.h:319: error: expected primary-expression before "type"
src/being.h:325: error: `Uint32' was not declared in this scope
src/being.h:325: error: `Uint16' was not declared in this scope
src/being.h:325: error: expected primary-expression before '*' token
src/being.h:325: error: `map' was not declared in this scope
src/being.h:325: error: initializer expression list treated as compound expression

In file included from src/graphics.h:27,
from src/being.cpp:30:
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:30:
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

In file included from src/being.cpp:38:
src/net/messageout.h:37: error: expected `,' or `...' before '&' token
src/net/messageout.h:37: error: ISO C++ forbids declaration of `Sint8' with no type

src/net/messageout.h:38: error: expected `,' or `...' before '&' token
src/net/messageout.h:38: error: ISO C++ forbids declaration of `Sint16' with no type
src/net/messageout.h:39: error: expected `,' or `...' before '&' token
src/net/messageout.h:39: error: ISO C++ forbids declaration of `Sint32' with no type

src/net/messageout.h:52: error: variable or field `writeInt8' declared void
src/net/messageout.h:52: error: expected `;' before '(' token

src/net/messageout.h:53: error: variable or field `writeInt16' declared void
src/net/messageout.h:53: error: expected `;' before '(' token
src/net/messageout.h:54: error: variable or field `writeInt32' declared void
src/net/messageout.h:54: error: expected `;' before '(' token

In file included from src/being.cpp:39:
src/net/protocol.h:137: error: variable or field `pickUp' declared void
src/net/protocol.h:137: error: `Uint32' was not declared in this scope

src/being.cpp:79: error: expected `)' before "iX"
src/being.cpp:79: error: expected `,' or `;' before "iX"
src/being.cpp:84: error: redefinition of `Being*createBeing'
src/being.h:325: error: `Being*createBeing' previously defined here

src/being.cpp:84: error: `Uint32' was not declared in this scope
src/being.cpp:84: error: `Uint16' was not declared in this scope

src/being.cpp:84: error: expected primary-expression before '*' token
src/being.cpp:84: error: `map' was not declared in this scope
src/being.cpp:85: error: expected `,' or `;' before '{' token

src/being.cpp:128: error: redefinition of `Being*findNode'
src/being.h:307: error: `Being*findNode' previously defined here
src/being.cpp:128: error: `Uint32' was not declared in this scope
src/being.cpp:129: error: expected `,' or `;' before '{' token

src/being.cpp:151: error: `Uint16' does not name a type
src/being.cpp: In member function `bool FindNodeFunctor::operator()(Being*)':
src/being.cpp:145: error: `Uint16' undeclared (first use this function)
src/being.cpp:145: error: expected `;' before "other_y"

src/being.cpp:146: error: 'class Being' has no member named 'x'
src/being.cpp:146: error: `x' undeclared (first use this function)
src/being.cpp:146: error: 'class Being' has no member named 'y'
src/being.cpp:146: error: `y' undeclared (first use this function)
src/being.cpp:146: error: 'class Being' has no member named 'y'
src/being.cpp:146: error: `other_y' undeclared (first use this function)
src/being.cpp:147: error: 'class Being' has no member named 'action'

src/being.cpp: At global scope:
src/being.cpp:155: error: redefinition of `Being*findNode'
src/being.h:307: error: `Being*findNode' previously defined here
src/being.cpp:155: error: `Uint16' was not declared in this scope
src/being.cpp:155: error: `Uint16' was not declared in this scope
src/being.cpp:156: error: expected `,' or `;' before '{' token
src/being.cpp:160: error: redefinition of `Being*findNode'
src/being.h:307: error: `Being*findNode' previously defined here
src/being.cpp:160: error: `Uint16' was not declared in this scope
src/being.cpp:160: error: `Uint16' was not declared in this scope
src/being.cpp:160: error: expected primary-expression before "type"
src/being.cpp:161: error: expected `,' or `;' before '{' token

src/being.cpp: In constructor `Being::Being()':
src/being.cpp:172: error: class `Being' does not have any field named `job'

src/being.cpp:173: error: class `Being' does not have any field named `x'
src/being.cpp:173: error: class `Being' does not have any field named `y'
src/being.cpp:173: error: class `Being' does not have any field named `direction'
src/being.cpp:174: error: class `Being' does not have any field named `action'
src/being.cpp:174: error: class `Being' does not have any field named `mFrame'
src/being.cpp:175: error: class `Being' does not have any field named `speech_color'
src/being.cpp:176: error: class `Being' does not have any field named `walk_time'
src/being.cpp:177: error: class `Being' does not have any field named `emotion'
src/being.cpp:177: error: class `Being' does not have any field named `emotion_time'
src/being.cpp:178: error: class `Being' does not have any field named `aspd'
src/being.cpp:179: error: class `Being' does not have any field named `mId'
src/being.cpp:180: error: class `Being' does not have any field named `mWeapon'

src/being.cpp:181: error: class `Being' does not have any field named `mWalkSpeed'
src/being.cpp:183: error: class `Being' does not have any field named `hairStyle'
src/being.cpp:183: error: class `Being' does not have any field named `hairColor'
src/being.cpp:184: error: class `Being' does not have any field named `speech_time'
src/being.cpp:185: error: class `Being' does not have any field named `damage_time'

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

src/being.cpp: In member function `void Being::setPath(std::list<PATH_NODE, std::allocator<PATH_NODE> >)':
src/being.cpp:213: error: no match for 'operator!=' in 'action != WALK'

src/being.cpp:213: error: no match for 'operator!=' in 'action != DEAD'
src/being.cpp:216: error: `walk_time' undeclared (first use this function)

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

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

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

src/being.cpp:229: error: variable or field `setHairStyle' declared void
src/being.cpp:229: error: `int Being::setHairStyle' is not a static member of `class Being'
src/being.cpp:229: error: `Uint16' was not declared in this scope
src/being.cpp:230: error: expected `,' or `;' before '{' token
src/being.cpp:239: error: `Uint32' has not been declared
src/being.cpp:240: 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:242: error: `speech_time' undeclared (first use this function)

src/being.cpp: At global scope:
src/being.cpp:247: error: variable or field `setDamage' declared void
src/being.cpp:247: error: `int Being::setDamage' is not a static member of `class Being'

src/being.cpp:247: error: `Sint16' was not declared in this scope
src/being.cpp:247: error: `Uint32' was not declared in this scope
src/being.cpp:248: error: initializer expression list treated as compound expression
src/being.cpp:248: error: expected `,' or `;' before '{' token

src/being.cpp: In member function `void Being::nextStep()':
src/being.cpp:281: error: `mFrame' undeclared (first use this function)
src/being.cpp:285: error: assignment of function `void action(char, int)'
src/being.cpp:285: error: cannot convert `Being::Action' to `void ()(char, int)' in assignment

src/being.cpp:292: error: `x' undeclared (first use this function)
src/being.cpp:293: error: `y' undeclared (first use this function)
src/being.cpp:293: error: `direction' undeclared (first use this function)
src/being.cpp:309: error: assignment of function `void action(char, int)'

src/being.cpp:309: error: cannot convert `Being::Action' to `void ()(char, int)' in assignment

src/being.cpp:310: error: `walk_time' undeclared (first use this function)
src/being.cpp:310: error: `mWalkSpeed' undeclared (first use this function)
src/being.cpp: In member function `void Being::logic()':
src/being.cpp:317: error: `speech_time' undeclared (first use this function)
src/being.cpp:323: error: `damage_time' undeclared (first use this function)

src/being.cpp:331: error: switch quantity not an integer
src/being.cpp:333: error: `mFrame' undeclared (first use this function)
src/being.cpp:333: error: `walk_time' undeclared (first use this function)
src/being.cpp:333: error: `mWalkSpeed' undeclared (first use this function)

src/being.cpp:339: error: `aspd' undeclared (first use this function)

src/being.cpp:350: error: no match for 'operator!=' in 'action != STAND'

src/being.cpp:354: error: no match for 'operator!=' in 'action != BOW_ATTACK'

src/being.cpp:361: error: `mPx' undeclared (first use this function)
src/being.cpp:361: error: `x' undeclared (first use this function)
src/being.cpp:362: error: `mPy' undeclared (first use this function)

src/being.cpp:362: error: `y' undeclared (first use this function)

src/being.cpp:370: error: `emotion' undeclared (first use this function)
src/being.cpp:372: error: `emotion_time' undeclared (first use this function)

src/being.cpp: At global scope:
src/being.cpp:380: error: `Sint32' has not been declared
src/being.cpp:380: error: `Sint32' has not been declared
src/being.cpp:381: error: ISO C++ forbids declaration of `offsetX' with no type
src/being.cpp:381: 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:382: error: `mPx' undeclared (first use this function)
src/being.cpp:383: error: `mPy' undeclared (first use this function)

src/being.cpp:410: error: `damage_time' undeclared (first use this function)

src/being.cpp: In member function `Being::Type Being::getType() const':
src/being.cpp:436: error: `job' undeclared (first use this function)

src/being.cpp: At global scope:
src/being.cpp:447: error: variable or field `setWeaponById' declared void
src/being.cpp:447: error: `int Being::setWeaponById' is not a static member of `class Being'
src/being.cpp:447: error: `Uint16' was not declared in this scope
src/being.cpp:448: error: expected `,' or `;' before '{' token

src/being.cpp: In member function `int Being::getXOffset() const':
src/being.cpp:481: error: no match for 'operator!=' in 'action != WALK'
src/being.cpp:481: error: `direction' undeclared (first use this function)

src/being.cpp:485: error: `walk_time' undeclared (first use this function)
src/being.cpp:485: error: `mWalkSpeed' undeclared (first use this function)

src/being.cpp: In member function `int Being::getYOffset() const':
src/being.cpp:505: error: no match for 'operator!=' in 'action != WALK'
src/being.cpp:505: error: `direction' undeclared (first use this function)
src/being.cpp:509: error: `walk_time' undeclared (first use this function)

src/being.cpp:509: error: `mWalkSpeed' undeclared (first use this function)

src/being.cpp: In member function `virtual void Being::draw(Graphics*, int, int)':
src/being.cpp:527: error: `direction' undeclared (first use this function)

src/being.cpp:528: error: `mPx' undeclared (first use this function)
src/being.cpp:529: error: `mPy' undeclared (first use this function)

src/being.cpp:535: error: invalid conversion from `void (*)(char, int)' to `int'
src/being.cpp:537: error: no match for 'operator!=' in 'action != SIT'
src/being.cpp:537: error: no match for 'operator!=' in 'action != DEAD'
src/being.cpp:539: error: `mFrame' undeclared (first use this function)

src/being.cpp:542: error: no match for 'operator==' in 'action == ATTACK'
src/being.cpp:542: error: `getWeapon' undeclared (first use this function)

src/being.cpp:550: error: no match for 'operator==' in 'action == ATTACK'
src/being.cpp:558: error: `getHairColor' undeclared (first use this function)

src/being.cpp:561: error: `getHairStyle' undeclared (first use this function)

src/being.cpp:568: error: `emotion' undeclared (first use this function)

src/being.cpp:582: error: `job' undeclared (first use this function)

src/being.cpp:591: error: invalid conversion from `void (*)(char, int)' to `int'
src/being.cpp:592: error: no match for 'operator!=' in 'action != BOW_ATTACK'

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

Exécution terminée
Master Ar2ro
Peon
Peon
Posts: 37
Joined: 21 Jan 2006, 11:59
Location: Poland, Earth
Contact:

Post by Master Ar2ro » 21 Jan 2006, 16:08

Did you install SDL?
SDL_types.h: No such file or directory
this tells me that probably not. Install The Mana World DevPak first.
Check this thread: http://forums.themanaworld.org/viewtopic.php?t=431. It's a sticky one in the same forum as you posted...
C/C++,Java,PHP+MySQL - read more
User avatar
AoH
Peon
Peon
Posts: 25
Joined: 18 Oct 2005, 05:53

Post by AoH » 21 Jan 2006, 16:23

Sure, SDL is installed so i have the same error...
User avatar
Bjørn
TMW Adviser
TMW Adviser
Posts: 1430
Joined: 09 Dec 2004, 19:50
Location: North Rhine-Westphalia, Germany
Contact:

Post by Bjørn » 21 Jan 2006, 16:31

Make sure the directory that includes that file (for example SDL_types.h) is in your C++ include paths. I think there is a note about this in the win32.txt documentation file.
Master Ar2ro
Peon
Peon
Posts: 37
Joined: 21 Jan 2006, 11:59
Location: Poland, Earth
Contact:

Post by Master Ar2ro » 21 Jan 2006, 16:33

Add the include directories
In project options -> directories -> include directories
add the directory, where SDL is installed. Mine is ...Dev-Cpp\include\SDL, so if you used the DevPack, your's going to be similar.
C/C++,Java,PHP+MySQL - read more
User avatar
AoH
Peon
Peon
Posts: 25
Joined: 18 Oct 2005, 05:53

Post by AoH » 21 Jan 2006, 16:41

Hum thanks a lot
Dll' are'nt registered it's ok now =)
User avatar
AoH
Peon
Peon
Posts: 25
Joined: 18 Oct 2005, 05:53

Post by AoH » 21 Jan 2006, 16:58

Sorry for double post cause edit function does not work :?

I have this error now :?

Compilateur: Default compiler
Building Makefile: "D:\Cyria Project\tmw\Makefile.win"
Exécution de make...
make.exe -f "D:\Cyria Project\tmw\Makefile.win" all
g++.exe -D__DEBUG__ -c src/gui/register.cpp -o obj/register.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" -I"C:/Dev-Cpp/include/SDL" -I"C:/Dev-Cpp/include" -DUSE_OPENGL -lguichan -lguichan_sdl -lguichan_opengl -lwsock32 -lSDL_image -lSDL_mixer -lSDL_net -lmingw32 -lSDLmain -lSDL -lxml2 -lopengl32 -lpng -lz.dll -lphysfs -lcurl -w -fexceptions -fexpensive-optimizations -O3 -g3 -fmessage-length=0 -mmmx

In file included from src/gui/register.cpp:24:

src/gui/register.h:81: error: ISO C++ forbids declaration of `WrongDataNoticeListener' with no type
src/gui/register.h:81: error: expected `;' before '*' token

src/gui/register.h:82: error: ISO C++ forbids declaration of `OkDialog' with no type
src/gui/register.h:82: error: expected `;' before '*' token

src/gui/register.cpp: In constructor `RegisterDialog::RegisterDialog()':
src/gui/register.cpp:135: error: `wrongDataNoticeListener' undeclared (first use this function)
src/gui/register.cpp:135: error: (Each undeclared identifier is reported only once for each function it appears in.)
src/gui/register.cpp:136: error: `wrongRegisterNotice' undeclared (first use this function)

src/gui/register.cpp: In member function `virtual void RegisterDialog::action(const std::string&)':
src/gui/register.cpp:202: error: `wrongDataNoticeListener' undeclared (first use this function)
src/gui/register.cpp:202: error: `WrongDataNoticeListener' has not been declared

src/gui/register.cpp:214: error: `wrongRegisterNotice' undeclared (first use this function)

src/gui/register.cpp: In member function `virtual void RegisterDialog::logic()':
src/gui/register.cpp:249: error: `NET_DATA' undeclared (first use this function)
src/gui/register.cpp:250: error: `packetReady' undeclared (first use this function)

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

Exécution terminée
User avatar
ElvenProgrammer
TMW Adviser
TMW Adviser
Posts: 2526
Joined: 13 Apr 2004, 20:11
Location: Italy
Contact:

Post by ElvenProgrammer » 21 Jan 2006, 18:49

Are you trying to compile CVS?
User avatar
AoH
Peon
Peon
Posts: 25
Joined: 18 Oct 2005, 05:53

Post by AoH » 22 Jan 2006, 03:40

Yes CVS version
User avatar
ElvenProgrammer
TMW Adviser
TMW Adviser
Posts: 2526
Joined: 13 Apr 2004, 20:11
Location: Italy
Contact:

Post by ElvenProgrammer » 22 Jan 2006, 10:03

Hmm it compiles just fine here, maybe you did modify something? Trying to get a fresh CVS checkout could maybe solve this.
Post Reply