not declared in scope

Problems building or running the engine, queries about how to use features etc.

not declared in scope

Postby attila the pun » Fri May 28, 2010 4:00 am

When I try to build Tutorial #1 I get 52 errors all saying that something was not declared in scope. Here is the error. I am using win7 x64, eclipse, mingw with gcc v 4.41.
Code: Select all
Description   Resource   Path   Location   Type
'avgFps' was not declared in this scope   ogre3sdk      line 79, external location: C:\OgreSDK_mingw_v1-7-1\Samples\Common\include\ExampleFrameListener.h   C/C++ Problem
'batches' was not declared in this scope   ogre3sdk      line 90, external location: C:\OgreSDK_mingw_v1-7-1\Samples\Common\include\ExampleFrameListener.h   C/C++ Problem
'bestFps' was not declared in this scope   ogre3sdk      line 81, external location: C:\OgreSDK_mingw_v1-7-1\Samples\Common\include\ExampleFrameListener.h   C/C++ Problem
'currFps' was not declared in this scope   ogre3sdk      line 80, external location: C:\OgreSDK_mingw_v1-7-1\Samples\Common\include\ExampleFrameListener.h   C/C++ Problem
'guiAvg' was not declared in this scope   ogre3sdk      line 73, external location: C:\OgreSDK_mingw_v1-7-1\Samples\Common\include\ExampleFrameListener.h   C/C++ Problem
'guiBatches' was not declared in this scope   ogre3sdk      line 89, external location: C:\OgreSDK_mingw_v1-7-1\Samples\Common\include\ExampleFrameListener.h   C/C++ Problem
'guiBest' was not declared in this scope   ogre3sdk      line 75, external location: C:\OgreSDK_mingw_v1-7-1\Samples\Common\include\ExampleFrameListener.h   C/C++ Problem
'guiCurr' was not declared in this scope   ogre3sdk      line 74, external location: C:\OgreSDK_mingw_v1-7-1\Samples\Common\include\ExampleFrameListener.h   C/C++ Problem
'guiDbg' was not declared in this scope   ogre3sdk      line 92, external location: C:\OgreSDK_mingw_v1-7-1\Samples\Common\include\ExampleFrameListener.h   C/C++ Problem
'guiTris' was not declared in this scope   ogre3sdk      line 86, external location: C:\OgreSDK_mingw_v1-7-1\Samples\Common\include\ExampleFrameListener.h   C/C++ Problem
'guiWorst' was not declared in this scope   ogre3sdk      line 76, external location: C:\OgreSDK_mingw_v1-7-1\Samples\Common\include\ExampleFrameListener.h   C/C++ Problem
'mDebugText' was not declared in this scope   ogre3sdk      line 93, external location: C:\OgreSDK_mingw_v1-7-1\Samples\Common\include\ExampleFrameListener.h   C/C++ Problem
'Ogre' is not a namespace-name   ogre3sdk      line 53, external location: C:\OgreSDK_mingw_v1-7-1\Samples\Common\include\ExampleFrameListener.h   C/C++ Problem
'OverlayElement' was not declared in this scope   ogre3sdk      line 73, external location: C:\OgreSDK_mingw_v1-7-1\Samples\Common\include\ExampleFrameListener.h   C/C++ Problem
'OverlayManager' has not been declared   ogre3sdk      line 73, external location: C:\OgreSDK_mingw_v1-7-1\Samples\Common\include\ExampleFrameListener.h   C/C++ Problem
'OverlayManager' has not been declared   ogre3sdk      line 74, external location: C:\OgreSDK_mingw_v1-7-1\Samples\Common\include\ExampleFrameListener.h   C/C++ Problem
'OverlayManager' has not been declared   ogre3sdk      line 75, external location: C:\OgreSDK_mingw_v1-7-1\Samples\Common\include\ExampleFrameListener.h   C/C++ Problem
'OverlayManager' has not been declared   ogre3sdk      line 76, external location: C:\OgreSDK_mingw_v1-7-1\Samples\Common\include\ExampleFrameListener.h   C/C++ Problem
'OverlayManager' has not been declared   ogre3sdk      line 86, external location: C:\OgreSDK_mingw_v1-7-1\Samples\Common\include\ExampleFrameListener.h   C/C++ Problem
'OverlayManager' has not been declared   ogre3sdk      line 89, external location: C:\OgreSDK_mingw_v1-7-1\Samples\Common\include\ExampleFrameListener.h   C/C++ Problem
'OverlayManager' has not been declared   ogre3sdk      line 92, external location: C:\OgreSDK_mingw_v1-7-1\Samples\Common\include\ExampleFrameListener.h   C/C++ Problem
'RenderTarget' has not been declared   ogre3sdk      line 78, external location: C:\OgreSDK_mingw_v1-7-1\Samples\Common\include\ExampleFrameListener.h   C/C++ Problem
'stats' was not declared in this scope   ogre3sdk      line 79, external location: C:\OgreSDK_mingw_v1-7-1\Samples\Common\include\ExampleFrameListener.h   C/C++ Problem
'String' does not name a type   ogre3sdk      line 64, external location: C:\OgreSDK_mingw_v1-7-1\Samples\Common\include\ExampleFrameListener.h   C/C++ Problem
'String' does not name a type   ogre3sdk      line 65, external location: C:\OgreSDK_mingw_v1-7-1\Samples\Common\include\ExampleFrameListener.h   C/C++ Problem
'String' does not name a type   ogre3sdk      line 66, external location: C:\OgreSDK_mingw_v1-7-1\Samples\Common\include\ExampleFrameListener.h   C/C++ Problem
'String' does not name a type   ogre3sdk      line 67, external location: C:\OgreSDK_mingw_v1-7-1\Samples\Common\include\ExampleFrameListener.h   C/C++ Problem
'String' does not name a type   ogre3sdk      line 68, external location: C:\OgreSDK_mingw_v1-7-1\Samples\Common\include\ExampleFrameListener.h   C/C++ Problem
'String' does not name a type   ogre3sdk      line 69, external location: C:\OgreSDK_mingw_v1-7-1\Samples\Common\include\ExampleFrameListener.h   C/C++ Problem
'StringConverter' has not been declared   ogre3sdk      line 79, external location: C:\OgreSDK_mingw_v1-7-1\Samples\Common\include\ExampleFrameListener.h   C/C++ Problem
'StringConverter' has not been declared   ogre3sdk      line 80, external location: C:\OgreSDK_mingw_v1-7-1\Samples\Common\include\ExampleFrameListener.h   C/C++ Problem
'StringConverter' has not been declared   ogre3sdk      line 81, external location: C:\OgreSDK_mingw_v1-7-1\Samples\Common\include\ExampleFrameListener.h   C/C++ Problem
'StringConverter' has not been declared   ogre3sdk      line 82, external location: C:\OgreSDK_mingw_v1-7-1\Samples\Common\include\ExampleFrameListener.h   C/C++ Problem
'StringConverter' has not been declared   ogre3sdk      line 83, external location: C:\OgreSDK_mingw_v1-7-1\Samples\Common\include\ExampleFrameListener.h   C/C++ Problem
'StringConverter' has not been declared   ogre3sdk      line 84, external location: C:\OgreSDK_mingw_v1-7-1\Samples\Common\include\ExampleFrameListener.h   C/C++ Problem
'StringConverter' has not been declared   ogre3sdk      line 87, external location: C:\OgreSDK_mingw_v1-7-1\Samples\Common\include\ExampleFrameListener.h   C/C++ Problem
'StringConverter' has not been declared   ogre3sdk      line 90, external location: C:\OgreSDK_mingw_v1-7-1\Samples\Common\include\ExampleFrameListener.h   C/C++ Problem
'tris' was not declared in this scope   ogre3sdk      line 87, external location: C:\OgreSDK_mingw_v1-7-1\Samples\Common\include\ExampleFrameListener.h   C/C++ Problem
'worstFps' was not declared in this scope   ogre3sdk      line 83, external location: C:\OgreSDK_mingw_v1-7-1\Samples\Common\include\ExampleFrameListener.h   C/C++ Problem
expected ')' before '*' token   ogre3sdk      line 100, external location: C:\OgreSDK_mingw_v1-7-1\Samples\Common\include\ExampleFrameListener.h   C/C++ Problem
expected '}' before end of line   ogre3sdk      line 2422, external location: C:\MinGW\include\winnt.h   C/C++ Problem
expected class-name before ',' token   ogre3sdk      line 59, external location: C:\OgreSDK_mingw_v1-7-1\Samples\Common\include\ExampleFrameListener.h   C/C++ Problem
expected class-name before '{' token   ogre3sdk      line 60, external location: C:\OgreSDK_mingw_v1-7-1\Samples\Common\include\ExampleFrameListener.h   C/C++ Problem
expected declaration before end of line   ogre3sdk      line 2422, external location: C:\MinGW\include\winnt.h   C/C++ Problem
expected initializer before '&' token   ogre3sdk      line 78, external location: C:\OgreSDK_mingw_v1-7-1\Samples\Common\include\ExampleFrameListener.h   C/C++ Problem
expected namespace-name before ';' token   ogre3sdk      line 53, external location: C:\OgreSDK_mingw_v1-7-1\Samples\Common\include\ExampleFrameListener.h   C/C++ Problem
expected unqualified-id before end of line   ogre3sdk      line 2422, external location: C:\MinGW\include\winnt.h   C/C++ Problem
macUtils.h: No such file or directory   ogre3sdk      line 62, external location: C:\OgreSDK_mingw_v1-7-1\Samples\Common\include\ExampleApplication.h   C/C++ Problem
Ogre.h: No such file or directory   ogre3sdk      line 24, external location: C:\OgreSDK_mingw_v1-7-1\Samples\Common\include\ExampleApplication.h   C/C++ Problem
OgreConfigFile.h: No such file or directory   ogre3sdk      line 25, external location: C:\OgreSDK_mingw_v1-7-1\Samples\Common\include\ExampleApplication.h   C/C++ Problem
OgreException.h: No such file or directory   ogre3sdk      line 45, external location: C:\OgreSDK_mingw_v1-7-1\Samples\Common\include\ExampleFrameListener.h   C/C++ Problem
OgreStringConverter.h: No such file or directory   ogre3sdk      line 44, external location: C:\OgreSDK_mingw_v1-7-1\Samples\Common\include\ExampleFrameListener.h   C/C++ Problem
Invalid project path: Duplicate path entries found (/ogre3sdk [Include path] isSystemInclude:true includePath:C:/MinGW/include), path: [/ogre3sdk].   ogre3sdk      pathentry   Path Entry Problem
Invalid project path: Include path not found (C:\MinGW\include\c++\3.4.5).   ogre3sdk      pathentry   Path Entry Problem
Invalid project path: Include path not found (C:\MinGW\include\c++\3.4.5\backward).   ogre3sdk      pathentry   Path Entry Problem
Invalid project path: Include path not found (C:\MinGW\include\c++\3.4.5\mingw32).   ogre3sdk      pathentry   Path Entry Problem
Invalid project path: Include path not found (C:\OgreSDK_mingw_v1-7-1\Samples\include).   ogre3sdk      pathentry   Path Entry Problem


Thank you
Attila the pun
attila the pun
Gnoblar
 
Posts: 2
Kudos: 0
Joined: 28 May 2010

Re: not declared in scope

Postby JaJDoo » Fri May 28, 2010 12:08 pm

you have a bunch of different errors there. before you start trying to solve the scope problem, solve the include errors (such as : "OgreConfigFile.h: No such file or directory" ). you project cant seem to find some files, make sure you have correct links to all include folders needed for your OGRE project.

also, you have a lot of " expected ')' " stuff or "epected class-name before '{' token", that either means some of your code is not written correctly or it derivative from the include problem.
some post from somewhere:
"So you basically want to make a car without a steering wheel because you don't know how to drive. I'd say learn how to use pointers"
User avatar
JaJDoo
Gnome
 
Posts: 343
Kudos: 5
Joined: 04 Feb 2009

Re: not declared in scope

Postby attila the pun » Sat May 29, 2010 9:32 pm

This is the sample code so I would expect there to not be errors. I switched to MSVS and installed the appropriate SDK and it works. I could not get Eclipse to work. Thanks anyways.
attila the pun
Gnoblar
 
Posts: 2
Kudos: 0
Joined: 28 May 2010


Return to Help

Who is online

Users browsing this forum: Bing [Bot], Exabot [Bot], Yahoo [Bot] and 5 guests