long way...
this is top part of main.cpp
#include <Ogre.h>
#include <CEGUI/CEGUI.h>
#include <OIS/OIS.h>
#include <OgreCEGUIRenderer.h>
#include <Caelum/caelum.h>
#include <./simple_text.h>
//#include <./basic/textoverlay.h>
#include <stack>
#include <map>
using namespace Ogre;
////
//#include <./math/pj_math.cpp>
////
#include <./container/obj_container.cpp>
#include <./winsock/winsock_class.cpp>
#include <./collision/collision_detection.cpp>
#include <./controls/controls.cpp>
#include <./controls/debug.cpp>
#include <./controls/camera.cpp>
////
#include <./md5/md5.h>
#include <./md5/md5wrapper.h>
//#include <./base/display>
class ExitListener : public FrameListener{
public:
when i try to use classes from other topper sub files i get error files class not definited...but when i add in that sub #include whit proper class declaration i get error class redefinited...
example...
in ./controls/camera.cpp i need to include ./math/pj_math.cpp in which are proper clasess so camera.cpp can work
in ./collision/collision_detection.cpp i need to again include ./math/pj_math.cpp
but i get class redefinited
if i add
./math/pj_math.cpp include to main and i remove ./math/pj_math.cpp from thows sub files i get error class not def. in sub files...