error compiling svn r244

error compiling svn r244

Postby ctdabomb » 07 Feb 2012, 16:18

I got these warnings
{l Code}: {l Select All Code}
/home/ctdabomb/meandmyshadow/src/Levels.cpp: In member function ‘void Levels::addLevel(const std::string&, int)’:
/home/ctdabomb/meandmyshadow/src/Levels.cpp:292: warning: comparison between signed and unsigned integer expressions
/home/ctdabomb/meandmyshadow/src/Levels.cpp: In member function ‘void Levels::setLevelName(int, const std::string&)’:
/home/ctdabomb/meandmyshadow/src/Levels.cpp:405: warning: comparison between signed and unsigned integer expressions
/home/ctdabomb/meandmyshadow/src/Levels.cpp: In member function ‘void Levels::swapLevel(int, int)’:
/home/ctdabomb/meandmyshadow/src/Levels.cpp:453: warning: comparison between signed and unsigned integer expressions
/home/ctdabomb/meandmyshadow/src/Levels.cpp:453: warning: comparison between signed and unsigned integer expressions
/home/ctdabomb/meandmyshadow/src/Levels.cpp: In member function ‘void Levels::removeLevel(int)’:
/home/ctdabomb/meandmyshadow/src/Levels.cpp:459: warning: comparison between signed and unsigned integer expressions

later while compiling I got this error
{l Code}: {l Select All Code}
    /home/ctdabomb/meandmyshadow/src/Functions.cpp: In function ‘bool loadFiles()’:
    /home/ctdabomb/meandmyshadow/src/Functions.cpp:158: error: ‘music’ was not declared in this scope
    /home/ctdabomb/meandmyshadow/src/Functions.cpp: At global scope:
    /home/ctdabomb/meandmyshadow/src/Functions.cpp:912: error: expected unqualified-id before ‘<<’ token
    /home/ctdabomb/meandmyshadow/src/Functions.cpp:950: error: redefinition of ‘ImageManager imageManager’
    /home/ctdabomb/meandmyshadow/src/Functions.cpp:55: error: ‘ImageManager imageManager’ previously declared here
    /home/ctdabomb/meandmyshadow/src/Functions.cpp:958: error: redefinition of ‘Settings* settings’
    /home/ctdabomb/meandmyshadow/src/Functions.cpp:59: error: ‘Settings* settings’ previously defined here
    /home/ctdabomb/meandmyshadow/src/Functions.cpp: In function ‘SDL_Surface* loadImage(std::string)’:
    /home/ctdabomb/meandmyshadow/src/Functions.cpp:961: error: redefinition of ‘SDL_Surface* loadImage(std::string)’
    /home/ctdabomb/meandmyshadow/src/Functions.cpp:62: error: ‘SDL_Surface* loadImage(std::string)’ previously defined here
    /home/ctdabomb/meandmyshadow/src/Functions.cpp: In function ‘void applySurface(int, int, SDL_Surface*, SDL_Surface*, SDL_Rect*)’:
    /home/ctdabomb/meandmyshadow/src/Functions.cpp:966: error: redefinition of ‘void applySurface(int, int, SDL_Surface*, SDL_Surface*, SDL_Rect*)’
    /home/ctdabomb/meandmyshadow/src/Functions.cpp:67: error: ‘void applySurface(int, int, SDL_Surface*, SDL_Surface*, SDL_Rect*)’ previously defined here
    /home/ctdabomb/meandmyshadow/src/Functions.cpp: In function ‘void drawRect(int, int, int, int, SDL_Surface*, Uint32)’:
    /home/ctdabomb/meandmyshadow/src/Functions.cpp:976: error: redefinition of ‘void drawRect(int, int, int, int, SDL_Surface*, Uint32)’
    /home/ctdabomb/meandmyshadow/src/Functions.cpp:77: error: ‘void drawRect(int, int, int, int, SDL_Surface*, Uint32)’ previously defined here
    /home/ctdabomb/meandmyshadow/src/Functions.cpp: In function ‘void drawGUIBox(int, int, int, int, SDL_Surface*, Uint32)’:
    /home/ctdabomb/meandmyshadow/src/Functions.cpp:981: error: redefinition of ‘void drawGUIBox(int, int, int, int, SDL_Surface*, Uint32)’
    /home/ctdabomb/meandmyshadow/src/Functions.cpp:82: error: ‘void drawGUIBox(int, int, int, int, SDL_Surface*, Uint32)’ previously defined here
    /home/ctdabomb/meandmyshadow/src/Functions.cpp:983: error: ‘roundedBoxRGBA’ was not declared in this scope
    /home/ctdabomb/meandmyshadow/src/Functions.cpp:986: error: ‘roundedRectangleRGBA’ was not declared in this scope
    /home/ctdabomb/meandmyshadow/src/Functions.cpp: In function ‘void drawLine(int, int, int, int, SDL_Surface*, Uint32)’:
    /home/ctdabomb/meandmyshadow/src/Functions.cpp:989: error: redefinition of ‘void drawLine(int, int, int, int, SDL_Surface*, Uint32)’
    /home/ctdabomb/meandmyshadow/src/Functions.cpp:90: error: ‘void drawLine(int, int, int, int, SDL_Surface*, Uint32)’ previously defined here
    /home/ctdabomb/meandmyshadow/src/Functions.cpp: In function ‘void drawLineWithArrow(int, int, int, int, SDL_Surface*, Uint32, int, int, int, int)’:
    /home/ctdabomb/meandmyshadow/src/Functions.cpp:994: error: redefinition of ‘void drawLineWithArrow(int, int, int, int, SDL_Surface*, Uint32, int, int, int, int)’
    /home/ctdabomb/meandmyshadow/src/Functions.cpp:95: error: ‘void drawLineWithArrow(int, int, int, int, SDL_Surface*, Uint32, int, int, int, int)’ previously defined here
    /home/ctdabomb/meandmyshadow/src/Functions.cpp: In function ‘bool init()’:
    /home/ctdabomb/meandmyshadow/src/Functions.cpp:1016: error: redefinition of ‘bool init()’
    /home/ctdabomb/meandmyshadow/src/Functions.cpp:117: error: ‘bool init()’ previously defined here
    /home/ctdabomb/meandmyshadow/src/Functions.cpp: In function ‘bool loadFiles()’:
    /home/ctdabomb/meandmyshadow/src/Functions.cpp:1055: error: redefinition of ‘bool loadFiles()’
    /home/ctdabomb/meandmyshadow/src/Functions.cpp:156: error: ‘bool loadFiles()’ previously defined here
    /home/ctdabomb/meandmyshadow/src/Functions.cpp: In function ‘bool loadSettings()’:
    /home/ctdabomb/meandmyshadow/src/Functions.cpp:1083: error: redefinition of ‘bool loadSettings()’
    /home/ctdabomb/meandmyshadow/src/Functions.cpp:182: error: ‘bool loadSettings()’ previously defined here
    /home/ctdabomb/meandmyshadow/src/Functions.cpp: In function ‘bool saveSettings()’:
    /home/ctdabomb/meandmyshadow/src/Functions.cpp:1091: error: redefinition of ‘bool saveSettings()’
    /home/ctdabomb/meandmyshadow/src/Functions.cpp:190: error: ‘bool saveSettings()’ previously defined here
    /home/ctdabomb/meandmyshadow/src/Functions.cpp: In function ‘Settings* getSettings()’:
    /home/ctdabomb/meandmyshadow/src/Functions.cpp:1098: error: redefinition of ‘Settings* getSettings()’
    /home/ctdabomb/meandmyshadow/src/Functions.cpp:197: error: ‘Settings* getSettings()’ previously defined here
    /home/ctdabomb/meandmyshadow/src/Functions.cpp: In function ‘void clean()’:
    /home/ctdabomb/meandmyshadow/src/Functions.cpp:1106: error: redefinition of ‘void clean()’
    /home/ctdabomb/meandmyshadow/src/Functions.cpp:201: error: ‘void clean()’ previously defined here
    /home/ctdabomb/meandmyshadow/src/Functions.cpp: In function ‘void setNextState(int)’:
    /home/ctdabomb/meandmyshadow/src/Functions.cpp:1143: error: redefinition of ‘void setNextState(int)’
    /home/ctdabomb/meandmyshadow/src/Functions.cpp:235: error: ‘void setNextState(int)’ previously defined here
    /home/ctdabomb/meandmyshadow/src/Functions.cpp: In function ‘void changeState()’:
    /home/ctdabomb/meandmyshadow/src/Functions.cpp:1150: error: redefinition of ‘void changeState()’
    /home/ctdabomb/meandmyshadow/src/Functions.cpp:242: error: ‘void changeState()’ previously defined here
    /home/ctdabomb/meandmyshadow/src/Functions.cpp: In function ‘bool checkCollision(const SDL_Rect&, const SDL_Rect&)’:
    /home/ctdabomb/meandmyshadow/src/Functions.cpp:1210: error: redefinition of ‘bool checkCollision(const SDL_Rect&, const SDL_Rect&)’
    /home/ctdabomb/meandmyshadow/src/Functions.cpp:297: error: ‘bool checkCollision(const SDL_Rect&, const SDL_Rect&)’ previously defined here
    /home/ctdabomb/meandmyshadow/src/Functions.cpp: In function ‘void setCamera()’:
    /home/ctdabomb/meandmyshadow/src/Functions.cpp:1232: error: redefinition of ‘void setCamera()’
    /home/ctdabomb/meandmyshadow/src/Functions.cpp:319: error: ‘void setCamera()’ previously defined here
    /home/ctdabomb/meandmyshadow/src/Functions.cpp: In function ‘bool parseArguments(int, char**)’:
    /home/ctdabomb/meandmyshadow/src/Functions.cpp:1267: error: redefinition of ‘bool parseArguments(int, char**)’
    /home/ctdabomb/meandmyshadow/src/Functions.cpp:354: error: ‘bool parseArguments(int, char**)’ previously defined here
    /home/ctdabomb/meandmyshadow/src/Functions.cpp: At global scope:
    /home/ctdabomb/meandmyshadow/src/Functions.cpp:1321: error: redefinition of ‘struct msgBoxHandler’
    /home/ctdabomb/meandmyshadow/src/Functions.cpp:408: error: previous definition of ‘struct msgBoxHandler’
    /home/ctdabomb/meandmyshadow/src/Functions.cpp: In function ‘msgBoxResult msgBox(std::string, msgBoxButtons, const std::string&)’:
    /home/ctdabomb/meandmyshadow/src/Functions.cpp:1344: error: redefinition of ‘msgBoxResult msgBox(std::string, msgBoxButtons, const std::string&)’
    /home/ctdabomb/meandmyshadow/src/Functions.cpp:431: error: ‘msgBoxResult msgBox(std::string, msgBoxButtons, const std::string&)’ previously defined here
    /home/ctdabomb/meandmyshadow/src/Functions.cpp: At global scope:
    /home/ctdabomb/meandmyshadow/src/Functions.cpp:1492: error: redefinition of ‘struct fileDialogHandler’
    /home/ctdabomb/meandmyshadow/src/Functions.cpp:579: error: previous definition of ‘struct fileDialogHandler’
    /home/ctdabomb/meandmyshadow/src/Functions.cpp: In function ‘bool fileDialog(std::string&, const char*, const char*, const char*, bool, bool, bool)’:
    /home/ctdabomb/meandmyshadow/src/Functions.cpp:1664: error: redefinition of ‘bool fileDialog(std::string&, const char*, const char*, const char*, bool, bool, bool)’
    /home/ctdabomb/meandmyshadow/src/Functions.cpp:753: error: ‘bool fileDialog(std::string&, const char*, const char*, const char*, bool, bool, bool)’ previously defined here
    /home/ctdabomb/meandmyshadow/src/Functions.cpp: At global scope:
    /home/ctdabomb/meandmyshadow/src/Functions.cpp:1822: error: expected unqualified-id before ‘>>’ token
    make[2]: *** [CMakeFiles/meandmyshadow.dir/src/Functions.cpp.o] Error 1
    make[1]: *** [CMakeFiles/meandmyshadow.dir/all] Error 2
    make: *** [all] Error 2
     
Some people are like slinkies... not really good for anything, but you still can't help smiling when you shove them down the stairs.
ctdabomb
 
Posts: 1075
Joined: 13 Dec 2011, 21:21
Location: halfway there

Re: error compiling svn r244

Postby MCMic » 07 Feb 2012, 16:43

You need to run "cmake ." again, because there are some new source files
User avatar
MCMic
 
Posts: 723
Joined: 05 Jan 2010, 17:40

Re: error compiling svn r244

Postby ctdabomb » 07 Feb 2012, 16:44

I did.
Some people are like slinkies... not really good for anything, but you still can't help smiling when you shove them down the stairs.
ctdabomb
 
Posts: 1075
Joined: 13 Dec 2011, 21:21
Location: halfway there

Re: error compiling svn r244

Postby ctdabomb » 07 Feb 2012, 16:45

it still did it after I redid cmake .
Some people are like slinkies... not really good for anything, but you still can't help smiling when you shove them down the stairs.
ctdabomb
 
Posts: 1075
Joined: 13 Dec 2011, 21:21
Location: halfway there

Re: error compiling svn r244

Postby MCMic » 07 Feb 2012, 17:14

Hum, have you tried make clean?
User avatar
MCMic
 
Posts: 723
Joined: 05 Jan 2010, 17:40

Re: error compiling svn r244

Postby ctdabomb » 07 Feb 2012, 17:48

yes I tried, didn't work. :(
Some people are like slinkies... not really good for anything, but you still can't help smiling when you shove them down the stairs.
ctdabomb
 
Posts: 1075
Joined: 13 Dec 2011, 21:21
Location: halfway there

Re: error compiling svn r244

Postby Edward_Lii » 07 Feb 2012, 18:03

Hello ctdabomb,

ctdabomb {l Wrote}:yes I tried, didn't work. :(

That's strange, looking at those errors it seems that your Functions.cpp is corrupted.
Could you post the output of this command:
{l Code}: {l Select All Code}
svn st


And perhaps this works:
{l Code}: {l Select All Code}
svn revert src/Functions.cpp
From,
Edward_Lii
User avatar
Edward_Lii
MnMS Moderator
 
Posts: 777
Joined: 20 Dec 2010, 16:46

Re: error compiling svn r244

Postby ctdabomb » 07 Feb 2012, 18:07

svn st output
{l Code}: {l Select All Code}
?       CMakeCache.txt
?       cmake_install.cmake
?       config.h
?       meandmyshadow
?       CMakeFiles
?       Makefile
?       src/Functions.cpp.r240
?       src/Functions.cpp.r244
?       src/Functions (copy).cpp
?       src/Functions.cpp.mine
C       src/Functions.cpp

when compiling I get this
{l Code}: {l Select All Code}
/home/ctdabomb/meandmyshadow/src/Functions.cpp: In function ‘void drawGUIBox(int, int, int, int, SDL_Surface*, Uint32)’:
/home/ctdabomb/meandmyshadow/src/Functions.cpp:89: error: ‘roundedBoxRGBA’ was not declared in this scope
/home/ctdabomb/meandmyshadow/src/Functions.cpp:92: error: ‘roundedRectangleRGBA’ was not declared in this scope
make[2]: *** [CMakeFiles/meandmyshadow.dir/src/Functions.cpp.o] Error 1
make[1]: *** [CMakeFiles/meandmyshadow.dir/all] Error 2
make: *** [all] Error 2

which is the same error from r237
Some people are like slinkies... not really good for anything, but you still can't help smiling when you shove them down the stairs.
ctdabomb
 
Posts: 1075
Joined: 13 Dec 2011, 21:21
Location: halfway there

Re: error compiling svn r244

Postby ctdabomb » 07 Feb 2012, 18:17

Some people are like slinkies... not really good for anything, but you still can't help smiling when you shove them down the stairs.
ctdabomb
 
Posts: 1075
Joined: 13 Dec 2011, 21:21
Location: halfway there

Who is online

Users browsing this forum: No registered users and 1 guest

cron