Problems with making guichan on my Mac. I have SDL

Ask for help regarding any technical issue or report any bug or OS independent issues.
Post Reply
Blorx2
Peon
Peon
Posts: 60
Joined: 13 Mar 2005, 14:10
Location: Florence, SC
Contact:

Problems with making guichan on my Mac. I have SDL

Post by Blorx2 » 15 Apr 2005, 00:39

All of the errors I got:

Code: Select all

sdlgraphics.cpp:83: error: `mTarget' undeclared (first use this function)
sdlgraphics.cpp: At global scope:
sdlgraphics.cpp:93: error: invalid use of member `gcn::SDLGraphics::SDL_Surface
   '
sdlgraphics.cpp:93: error: `target' was not declared in this scope
sdlgraphics.cpp:94: error: variable or field `setTarget' declared void
sdlgraphics.cpp:94: error: `int gcn::SDLGraphics::setTarget' is not a static 
   member of `class gcn::SDLGraphics'
sdlgraphics.cpp:94: error: syntax error before `{' token
sdlgraphics.cpp:99: error: syntax error before `::' token
sdlgraphics.cpp:102: error: `Graphics' was not declared in this scope
sdlgraphics.cpp:102: error: parse error before `::' token
sdlgraphics.cpp:104: error: parse error before `=' token
sdlgraphics.cpp:105: error: syntax error before `.' token
sdlgraphics.cpp:106: error: syntax error before `.' token
sdlgraphics.cpp:107: error: syntax error before `.' token
sdlgraphics.cpp:108: error: syntax error before `.' token
sdlgraphics.cpp:110: error: `mTarget' was not declared in this scope
sdlgraphics.cpp:110: error: `rect' was not declared in this scope
sdlgraphics.cpp:110: warning: ISO C++ forbids declaration of `SDL_SetClipRect' 
   with no type
sdlgraphics.cpp:110: warning: initializer list being treated as compound 
   expression
sdlgraphics.cpp:112: error: parse error before `return'
sdlgraphics.cpp:116: error: syntax error before `::' token
sdlgraphics.cpp:119: error: syntax error before `::' token
sdlgraphics.cpp:126: error: parse error before `=' token
sdlgraphics.cpp:127: error: syntax error before `.' token
sdlgraphics.cpp:128: error: syntax error before `.' token
sdlgraphics.cpp:129: error: syntax error before `.' token
sdlgraphics.cpp:130: error: syntax error before `.' token
sdlgraphics.cpp:132: error: `mTarget' was not declared in this scope
sdlgraphics.cpp:132: error: `rect' was not declared in this scope
sdlgraphics.cpp:132: warning: ISO C++ forbids declaration of `SDL_SetClipRect' 
   with no type
sdlgraphics.cpp:132: error: redefinition of `int SDL_SetClipRect'
sdlgraphics.cpp:110: error: `int SDL_SetClipRect' previously defined here
sdlgraphics.cpp:132: warning: initializer list being treated as compound 
   expression
sdlgraphics.cpp:134: error: parse error before `}' token
sdlgraphics.cpp:136: error: syntax error before `*' token
sdlgraphics.cpp:142: error: syntax error before `::' token
sdlgraphics.cpp:147: error: 'SDL_Rect' is used as a type, but is not defined as 
   a type.
sdlgraphics.cpp:148: error: 'SDL_Rect' is used as a type, but is not defined as 
   a type.
sdlgraphics.cpp:149: error: syntax error before `.' token
sdlgraphics.cpp:150: error: syntax error before `.' token
sdlgraphics.cpp:151: error: syntax error before `.' token
sdlgraphics.cpp:152: error: syntax error before `.' token
sdlgraphics.cpp:153: error: syntax error before `.' token
sdlgraphics.cpp:154: error: syntax error before `.' token
sdlgraphics.cpp:156: error: syntax error before `*' token
sdlgraphics.cpp:158: error: `srcImage' was not declared in this scope
sdlgraphics.cpp:158: error: `src' was not declared in this scope
sdlgraphics.cpp:158: error: `mTarget' was not declared in this scope
sdlgraphics.cpp:158: error: `dst' was not declared in this scope
sdlgraphics.cpp:158: warning: ISO C++ forbids declaration of `SDL_BlitSurface' 
   with no type
sdlgraphics.cpp:158: warning: initializer list being treated as compound 
   expression
sdlgraphics.cpp:160: error: parse error before `}' token
sdlgraphics.cpp:162: error: syntax error before `::' token
sdlgraphics.cpp:165: error: parse error before `=' token
sdlgraphics.cpp:167: error: syntax error before `.' token
sdlgraphics.cpp:168: error: syntax error before `.' token
sdlgraphics.cpp:179: error: parse error before `for'
sdlgraphics.cpp:179: error: `rectangle' was not declared in this scope
sdlgraphics.cpp:179: error: `rectangle' was not declared in this scope
sdlgraphics.cpp:179: error: parse error before `;' token
sdlgraphics.cpp:181: error: `rectangle' was not declared in this scope
sdlgraphics.cpp:181: error: `rectangle' was not declared in this scope
sdlgraphics.cpp:181: error: parse error before `;' token
sdlgraphics.cpp:190: error: syntax error before `.' token
sdlgraphics.cpp:191: error: syntax error before `.' token
sdlgraphics.cpp:192: error: syntax error before `.' token
sdlgraphics.cpp:193: error: syntax error before `.' token
sdlgraphics.cpp:195: error: parse error before `=' token
sdlgraphics.cpp:196: error: `mTarget' was not declared in this scope
sdlgraphics.cpp:196: error: `rect' was not declared in this scope
sdlgraphics.cpp:196: error: `color' was not declared in this scope
sdlgraphics.cpp:196: warning: ISO C++ forbids declaration of `SDL_FillRect' 
   with no type
sdlgraphics.cpp:196: warning: initializer list being treated as compound 
   expression
sdlgraphics.cpp:197: error: parse error before `}' token
sdlgraphics.cpp:201: error: syntax error before `::' token
sdlgraphics.cpp:204: error: syntax error before `+=' token
sdlgraphics.cpp:205: error: syntax error before `+=' token
sdlgraphics.cpp:221: error: syntax error before `::' token
sdlgraphics.cpp:224: error: syntax error before `+=' token
sdlgraphics.cpp:225: error: syntax error before `+=' token
sdlgraphics.cpp:226: error: syntax error before `+=' token
sdlgraphics.cpp:234: error: syntax error before `^=' token
sdlgraphics.cpp:235: error: syntax error before `^=' token
sdlgraphics.cpp:244: warning: ISO C++ forbids declaration of `x1' with no type
sdlgraphics.cpp:244: error: `top' was not declared in this scope
sdlgraphics.cpp:245: error: parse error before `}' token
sdlgraphics.cpp:253: warning: ISO C++ forbids declaration of `x2' with no type
sdlgraphics.cpp:253: error: `top' was not declared in this scope
sdlgraphics.cpp:253: error: `top' was not declared in this scope
sdlgraphics.cpp:254: error: parse error before `}' token
sdlgraphics.cpp:256: error: `mTarget' was not declared in this scope
sdlgraphics.cpp:258: error: `mTarget' was not declared in this scope
sdlgraphics.cpp:258: warning: ISO C++ forbids declaration of `SDL_LockSurface' 
   with no type
sdlgraphics.cpp:260: error: syntax error before `*' token
sdlgraphics.cpp:262: error: parse error before `=' token
sdlgraphics.cpp:267: error: syntax error before `<=' token
sdlgraphics.cpp:276: error: syntax error before `<=' token
sdlgraphics.cpp:285: error: syntax error before `<=' token
sdlgraphics.cpp:288: warning: ISO C++ forbids declaration of `p' with no type
sdlgraphics.cpp:288: error: `pixel' was not declared in this scope
sdlgraphics.cpp:289: warning: ISO C++ forbids declaration of `p' with no type
sdlgraphics.cpp:289: error: conflicting types for `int p[2]'
sdlgraphics.cpp:288: error: previous declaration as `int p[1]'
sdlgraphics.cpp:289: error: `pixel' was not declared in this scope
sdlgraphics.cpp:290: error: syntax error before `+=' token
sdlgraphics.cpp:295: error: syntax error before `<=' token
sdlgraphics.cpp:298: warning: ISO C++ forbids declaration of `p' with no type
sdlgraphics.cpp:298: error: conflicting types for `int p[1]'
sdlgraphics.cpp:289: error: previous declaration as `int p[2]'
sdlgraphics.cpp:298: error: `pixel' was not declared in this scope
sdlgraphics.cpp:299: warning: ISO C++ forbids declaration of `p' with no type
sdlgraphics.cpp:299: error: conflicting types for `int p[2]'
sdlgraphics.cpp:298: error: previous declaration as `int p[1]'
sdlgraphics.cpp:299: error: `pixel' was not declared in this scope
sdlgraphics.cpp:300: error: syntax error before `+=' token
sdlgraphics.cpp:308: error: syntax error before `<=' token
sdlgraphics.cpp:313: error: syntax error before `++' token
sdlgraphics.cpp:324: error: `mTarget' was not declared in this scope
sdlgraphics.cpp:324: warning: ISO C++ forbids declaration of `SDL_UnlockSurface
   ' with no type
sdlgraphics.cpp:326: error: parse error before `}' token
sdlgraphics.cpp:328: error: syntax error before `::' token
sdlgraphics.cpp:331: error: syntax error before `+=' token
sdlgraphics.cpp:332: error: syntax error before `+=' token
sdlgraphics.cpp:333: error: syntax error before `+=' token
sdlgraphics.cpp:341: error: syntax error before `^=' token
sdlgraphics.cpp:342: error: syntax error before `^=' token
sdlgraphics.cpp:351: warning: ISO C++ forbids declaration of `y1' with no type
sdlgraphics.cpp:351: error: `top' was not declared in this scope
sdlgraphics.cpp:352: error: parse error before `}' token
sdlgraphics.cpp:360: warning: ISO C++ forbids declaration of `y2' with no type
sdlgraphics.cpp:360: error: `top' was not declared in this scope
sdlgraphics.cpp:360: error: `top' was not declared in this scope
sdlgraphics.cpp:361: error: parse error before `}' token
sdlgraphics.cpp:363: error: redefinition of `int bpp'
sdlgraphics.cpp:256: error: `int bpp' previously defined here
sdlgraphics.cpp:363: error: `mTarget' was not declared in this scope
sdlgraphics.cpp:365: error: `mTarget' was not declared in this scope
sdlgraphics.cpp:365: warning: ISO C++ forbids declaration of `SDL_LockSurface' 
   with no type
sdlgraphics.cpp:365: error: redefinition of `int SDL_LockSurface'
sdlgraphics.cpp:258: error: `int SDL_LockSurface' previously defined here
sdlgraphics.cpp:367: error: syntax error before `*' token
sdlgraphics.cpp:369: error: parse error before `=' token
sdlgraphics.cpp:374: error: syntax error before `<=' token
sdlgraphics.cpp:377: error: syntax error before `+=' token
sdlgraphics.cpp:383: error: syntax error before `<=' token
sdlgraphics.cpp:386: error: syntax error before `+=' token
sdlgraphics.cpp:393: error: syntax error before `<=' token
sdlgraphics.cpp:396: warning: ISO C++ forbids declaration of `p' with no type
sdlgraphics.cpp:396: error: conflicting types for `int p[1]'
sdlgraphics.cpp:299: error: previous declaration as `int p[2]'
sdlgraphics.cpp:396: error: `pixel' was not declared in this scope
sdlgraphics.cpp:397: warning: ISO C++ forbids declaration of `p' with no type
sdlgraphics.cpp:397: error: conflicting types for `int p[2]'
sdlgraphics.cpp:396: error: previous declaration as `int p[1]'
sdlgraphics.cpp:397: error: `pixel' was not declared in this scope
sdlgraphics.cpp:398: error: syntax error before `+=' token
sdlgraphics.cpp:403: error: syntax error before `<=' token
sdlgraphics.cpp:406: warning: ISO C++ forbids declaration of `p' with no type
sdlgraphics.cpp:406: error: conflicting types for `int p[1]'
sdlgraphics.cpp:397: error: previous declaration as `int p[2]'
sdlgraphics.cpp:406: error: `pixel' was not declared in this scope
sdlgraphics.cpp:407: warning: ISO C++ forbids declaration of `p' with no type
sdlgraphics.cpp:407: error: conflicting types for `int p[2]'
sdlgraphics.cpp:406: error: previous declaration as `int p[1]'
sdlgraphics.cpp:407: error: `pixel' was not declared in this scope
sdlgraphics.cpp:408: error: syntax error before `+=' token
sdlgraphics.cpp:415: error: syntax error before `<=' token
sdlgraphics.cpp:425: error: syntax error before `+=' token
sdlgraphics.cpp:430: error: `mTarget' was not declared in this scope
sdlgraphics.cpp:430: warning: ISO C++ forbids declaration of `SDL_UnlockSurface
   ' with no type
sdlgraphics.cpp:430: error: redefinition of `int SDL_UnlockSurface'
sdlgraphics.cpp:324: error: `int SDL_UnlockSurface' previously defined here
sdlgraphics.cpp:432: error: parse error before `}' token
sdlgraphics.cpp:434: error: syntax error before `::' token
sdlgraphics.cpp:437: error: redefinition of `int x2'
sdlgraphics.cpp:253: error: `int x2' previously defined here
sdlgraphics.cpp:437: error: `rectangle' was not declared in this scope
sdlgraphics.cpp:437: error: `rectangle' was not declared in this scope
sdlgraphics.cpp:438: error: redefinition of `int y1'
sdlgraphics.cpp:351: error: `int y1' previously defined here
sdlgraphics.cpp:438: error: `rectangle' was not declared in this scope
sdlgraphics.cpp:439: error: redefinition of `int y2'
sdlgraphics.cpp:360: error: `int y2' previously defined here
sdlgraphics.cpp:439: error: `rectangle' was not declared in this scope
sdlgraphics.cpp:439: error: `rectangle' was not declared in this scope
sdlgraphics.cpp:441: warning: ISO C++ forbids declaration of `drawHLine' with 
   no type
sdlgraphics.cpp:441: warning: initializer list being treated as compound 
   expression
sdlgraphics.cpp:442: warning: ISO C++ forbids declaration of `drawHLine' with 
   no type
sdlgraphics.cpp:442: error: redefinition of `int drawHLine'
sdlgraphics.cpp:441: error: `int drawHLine' previously declared here
sdlgraphics.cpp:442: warning: initializer list being treated as compound 
   expression
sdlgraphics.cpp:444: warning: ISO C++ forbids declaration of `drawVLine' with 
   no type
sdlgraphics.cpp:444: warning: initializer list being treated as compound 
   expression
sdlgraphics.cpp:445: warning: ISO C++ forbids declaration of `drawVLine' with 
   no type
sdlgraphics.cpp:445: error: redefinition of `int drawVLine'
sdlgraphics.cpp:444: error: `int drawVLine' previously declared here
sdlgraphics.cpp:445: warning: initializer list being treated as compound 
   expression
sdlgraphics.cpp:447: error: parse error before `}' token
sdlgraphics.cpp:449: error: syntax error before `::' token
sdlgraphics.cpp:462: error: parse error before `=' token
sdlgraphics.cpp:463: error: syntax error before `+=' token
sdlgraphics.cpp:464: error: syntax error before `+=' token
sdlgraphics.cpp:465: error: syntax error before `+=' token
sdlgraphics.cpp:466: error: syntax error before `+=' token
sdlgraphics.cpp:473: error: parse error before `if'
sdlgraphics.cpp:479: error: syntax error before `^=' token
sdlgraphics.cpp:480: error: syntax error before `^=' token
sdlgraphics.cpp:483: error: syntax error before `^=' token
sdlgraphics.cpp:484: error: syntax error before `^=' token
sdlgraphics.cpp:485: error: syntax error before `^=' token
sdlgraphics.cpp:491: error: conflicting types for `int p'
sdlgraphics.cpp:407: error: previous declaration as `int p[2]'
sdlgraphics.cpp:493: error: parse error before `for'
sdlgraphics.cpp:493: error: syntax error before `<=' token
sdlgraphics.cpp:493: error: syntax error before `++' token
sdlgraphics.cpp:507: error: syntax error before `+=' token
sdlgraphics.cpp:512: error: syntax error before `-=' token
sdlgraphics.cpp:519: error: redefinition of `int p'
sdlgraphics.cpp:491: error: `int p' previously defined here
sdlgraphics.cpp:521: error: parse error before `for'
sdlgraphics.cpp:521: error: syntax error before `<=' token
sdlgraphics.cpp:521: error: syntax error before `++' token
sdlgraphics.cpp:535: error: syntax error before `+=' token
sdlgraphics.cpp:540: error: syntax error before `-=' token
sdlgraphics.cpp:551: error: syntax error before `^=' token
sdlgraphics.cpp:552: error: syntax error before `^=' token
sdlgraphics.cpp:555: error: syntax error before `^=' token
sdlgraphics.cpp:556: error: syntax error before `^=' token
sdlgraphics.cpp:557: error: syntax error before `^=' token
sdlgraphics.cpp:563: error: redefinition of `int p'
sdlgraphics.cpp:519: error: `int p' previously defined here
sdlgraphics.cpp:565: error: parse error before `for'
sdlgraphics.cpp:565: error: syntax error before `<=' token
sdlgraphics.cpp:565: error: syntax error before `++' token
sdlgraphics.cpp:579: error: syntax error before `+=' token
sdlgraphics.cpp:584: error: syntax error before `-=' token
sdlgraphics.cpp:591: error: redefinition of `int p'
sdlgraphics.cpp:563: error: `int p' previously defined here
sdlgraphics.cpp:593: error: parse error before `for'
sdlgraphics.cpp:593: error: syntax error before `<=' token
sdlgraphics.cpp:593: error: syntax error before `++' token
sdlgraphics.cpp:607: error: syntax error before `+=' token
sdlgraphics.cpp:612: error: syntax error before `-=' token
sdlgraphics.cpp:620: error: syntax error before `::' token
sdlgraphics.cpp:624: warning: ISO C++ forbids declaration of `mAlpha' with no 
   type
sdlgraphics.cpp:624: error: `color' was not declared in this scope
sdlgraphics.cpp:625: error: parse error before `}' token
sdlgraphics.cpp:627: error: syntax error before `&' token
sdlgraphics.cpp:632: error: syntax error before `::' token
sdlgraphics.cpp:636: error: syntax error before `.' token
sdlgraphics.cpp:637: error: syntax error before `.' token
sdlgraphics.cpp:639: error: `surface' was not declared in this scope
sdlgraphics.cpp:639: error: `source' was not declared in this scope
sdlgraphics.cpp:639: error: `mTarget' was not declared in this scope
sdlgraphics.cpp:639: error: `destination' was not declared in this scope
sdlgraphics.cpp:639: warning: ISO C++ forbids declaration of `SDL_BlitSurface' 
   with no type
sdlgraphics.cpp:639: error: redefinition of `int SDL_BlitSurface'
sdlgraphics.cpp:158: error: `int SDL_BlitSurface' previously defined here
sdlgraphics.cpp:639: warning: initializer list being treated as compound 
   expression
sdlgraphics.cpp:640: error: parse error before `}' token
make[2]: *** [sdlgraphics.lo] Error 1
make[1]: *** [install-recursive] Error 1
make: *** [install-recursive] Error 1
"A wizard is never late, nor is he early, he arrives precisely when he needs to" - Gandalf
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 » 16 Apr 2005, 00:59

You say you have SDL, but can it actually find the header file? If mTarget is undeclared it looks like it missed the definition of SDL_Surface. Which would also mean that your huge list of errors excludes the one interesting line, which would probably be a warning about not being able to find the SDL header.
Post Reply