Game Development Community

Linux and the Alpha

by Ricky Taylor · in Torque Game Builder · 12/06/2005 (1:22 pm) · 2 replies

Anyone know why I have pages of:
gui/guiControl.cc:24: error: ISO C++ does not permit 'GuiControl::smEditorHandle' to be defined as 'GuiEditCtrl::smEditorHandle'
gui/guiControl.cc:25: error: cannot declare member 'GuiControl::smDesignTime' within 'GuiEditCtrl'
gui/guiControl.cc:25: error: assignment (not initialization) in declaration
gui/guiControl.cc:28: error: cannot declare member function 'GuiControl::GuiControl' within 'GuiEditCtrl'
gui/guiControl.cc:28: error: syntax error before '{' token
gui/guiControl.cc:30: error: syntax error before '.' token
gui/guiControl.cc:31: error: syntax error before '.' token
gui/guiControl.cc:33: error: ISO C++ forbids declaration of 'mProfile' with no type

Seems someone was putting t2d in headers instead of T2D. Heh. Easily fixed....

But why doesnt GCC-3.3 support this code...? Seems OK to me and MSVC. (Beta2)

Thanks in advance, great job so far T2D Team!

Ricky26,

#1
12/06/2005 (1:33 pm)
OK, Im getting there.... Just commenting out line 24(?) fixed it.

Now Im getting confusicated...

T2D/t2dAnimatedSprite.cc:365:61: pasting "loadStream_4" and "," does not give a valid preprocessing token
T2D/t2dAnimatedSprite.cc:365:61: pasting "saveStream_4" and "}" does not give a valid preprocessing token

Got it!

#define REGISTER_SERIALISE_VERSION( className, version, deprecated )                                            \
    { version, deprecated, className::loadStream_##version##, className::saveStream_##version##},

Should be:

#define REGISTER_SERIALISE_VERSION( className, version, deprecated )                                            \
    { version, deprecated, className::loadStream_##version , className::saveStream_##version },
#2
12/06/2005 (1:59 pm)
Doi....
out.GCC3.RELEASE/dgl/dgl.obj: In function 'dglPointToScreen(Point3F&, Point3F&)':
dgl.cc:(.text+0x1c85): undefined reference to 'gluProject'
out.GCC3.RELEASE/gui/editor/guiEditCtrl.obj: In function 'GuiEditCtrl::onWake()':
guiEditCtrl.cc:(.text+0xebe): undefined reference to 'GuiControl::smEditorHandle'
out.GCC3.RELEASE/gui/editor/guiEditCtrl.obj: In function 'GuiEditCtrl::onSleep()':
guiEditCtrl.cc:(.text+0xeea): undefined reference to 'GuiControl::smEditorHandle'
out.GCC3.RELEASE/gui/editor/guiInspector.obj: In function 'GuiInspector::constructEditControl(GuiInspector::FieldInfo*)':
guiInspector.cc:(.text+0x914): undefined reference to 'T2DDatablockDropDownCtrl::T2DDatablockDropDownCtrl[in-charge]()'
guiInspector.cc:(.text+0x98d): undefined reference to 'T2DDatablockDropDownCtrl::setFilter(char const*)'
out.GCC3.RELEASE/game/net/serverQuery.obj: In function 'handleGamePingRequest(NetAddress const*, unsigned, unsigned char)':
serverQuery.cc:(.text+0x45f3): undefined reference to 'GameConnection::CurrentProtocolVersion'
serverQuery.cc:(.text+0x461f): undefined reference to 'GameConnection::MinRequiredProtocolVersion'
out.GCC3.RELEASE/game/net/serverQuery.obj: In function 'handleGamePingResponse(NetAddress const*, BitStream*, unsigned, unsigned char)':
serverQuery.cc:(.text+0x4b9d): undefined reference to 'GameConnection::MinRequiredProtocolVersion'
serverQuery.cc:(.text+0x4d69): undefined reference to 'GameConnection::CurrentProtocolVersion'
out.GCC3.RELEASE/T2D/t2dAnimationController.obj: In function 't2dAnimationController::playAnimation(char const*, bool, int, bool)':
t2dAnimationController.cc:(.text+0xca4): undefined reference to 'mGreaterThanOrEqual(float const&, float const&)'
t2dAnimationController.cc:(.text+0xd18): undefined reference to 'mGetT2DRandomF(float, float)'
out.GCC3.RELEASE/T2D/t2dGraphField.obj: In function 't2dGraphField::getGraphValue(float) const':
t2dGraphField.cc:(.text+0xa2b): undefined reference to 'mIsZero(float const&)'
out.GCC3.RELEASE/T2D/t2dGraphField.obj: In function 't2dGraphField::calcGraphBV(t2dGraphField&, t2dGraphField&, float, bool, float)':
t2dGraphField.cc:(.text+0xb9d): undefined reference to 'mGetT2DRandomF(float, float)'
t2dGraphField.cc:(.text+0xbd0): undefined reference to 'mGetT2DRandomF(float, float)'
out.GCC3.RELEASE/T2D/t2dGraphField.obj: In function 't2dGraphField::calcGraphBVE(t2dGraphField&, t2dGraphField&, t2dGraphField&, float, bool, float)':
t2dGraphField.cc:(.text+0xc97): undefined reference to 'mGetT2DRandomF(float, float)'
t2dGraphField.cc:(.text+0xcde): undefined reference to 'mGetT2DRandomF(float, float)'
out.GCC3.RELEASE/T2D/t2dGraphField.obj: In function 't2dGraphField::calcGraphBVLE(t2dGraphField&, t2dGraphField&, t2dGraphField&, t2dGraphField&, float, float, bool, float)':
t2dGraphField.cc:(.text+0xdd6): undefined reference to 'mGetT2DRandomF(float, float)'
out.GCC3.RELEASE/T2D/t2dGraphField.obj:t2dGraphField.cc:(.text+0xe16): more undefined references to 'mGetT2DRandomF(float, float)' follow
out.GCC3.RELEASE/T2D/t2dImageMapDatablock.obj: In function 't2dImageMapDatablock::validateFrames()':

It goes on.... Im at the linking bit tho!