Page 1 of 1

Compiler errors under Linux Core 4

Posted: Sun Jul 03, 2005 01:45
by stodge
Just tried to compile the newest version under Fedora Core 4 and I get some errors:

Code: Select all

CEGuiSample.cpp: In destructor 'virtual CEGuiSample::~CEGuiSample()':
CEGuiSample.cpp:74: error: invalid use of undefined type 'struct CEGuiBaseApplication'
../../../Samples/common/include/CEGuiSample.h:39: error: forward declaration of 'struct CEGuiBaseApplication'
CEGuiSample.cpp:75: warning: possible problem detected in invocation of delete operator:
CEGuiSample.cpp:75: warning: invalid use of undefined type 'struct CEGuiBaseApplication'
../../../Samples/common/include/CEGuiSample.h:39: warning: forward declaration of 'struct CEGuiBaseApplication'
CEGuiSample.cpp:75: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined.
CEGuiSample.cpp: In member function 'virtual bool CEGuiSample::initialise()':
CEGuiSample.cpp:170: error: invalid use of undefined type 'struct CEGuiBaseApplication'
../../../Samples/common/include/CEGuiSample.h:39: error: forward declaration of 'struct CEGuiBaseApplication'
CEGuiSample.cpp:177: warning: possible problem detected in invocation of delete operator:
CEGuiSample.cpp:177: warning: invalid use of undefined type 'struct CEGuiBaseApplication'
../../../Samples/common/include/CEGuiSample.h:39: warning: forward declaration of 'struct CEGuiBaseApplication'
CEGuiSample.cpp:177: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined.
CEGuiSample.cpp: In member function 'virtual void CEGuiSample::cleanup()':
CEGuiSample.cpp:197: error: invalid use of undefined type 'struct CEGuiBaseApplication'
../../../Samples/common/include/CEGuiSample.h:39: error: forward declaration of 'struct CEGuiBaseApplication'
CEGuiSample.cpp:198: warning: possible problem detected in invocation of delete operator:
CEGuiSample.cpp:198: warning: invalid use of undefined type 'struct CEGuiBaseApplication'
../../../Samples/common/include/CEGuiSample.h:39: warning: forward declaration of 'struct CEGuiBaseApplication'
CEGuiSample.cpp:198: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined.
make[3]: *** [CEGuiSample.lo] Error 1
make[3]: Leaving directory `/home/mike/Desktop/Downloads/cegui_mk2-0.3.0/Samples/common/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/mike/Desktop/Downloads/cegui_mk2-0.3.0/Samples/common'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/mike/Desktop/Downloads/cegui_mk2-0.3.0/Samples'
m


Anyone else get these?

Thanks

Re: Compiler errors under Linux Core 4

Posted: Sun Jul 03, 2005 09:51
by CrazyEddie
There's a minor fault in ./configure at the moment with regards to what happens with the samples framework.

Basically, the error is caused by none of the available renderers being available for the samples. There are two work-aounds for the moment:

1) Install the OpenGL and glut development package to ensure that the GL renderer is built, and that glut is available for the samples.

2) Add 'CEGuiBaseApplication.h" as an include at the top of the file CEGuiSample.cpp

Hope this helps, and sorry for the inconvenience :)

Re: Compiler errors under Linux Core 4

Posted: Sun Jul 03, 2005 18:21
by stodge
Don't be sorry! Thanks for your help.