GLBasic 8.148

Previous topic - Next topic

johngood

Hi,
My program was compiled yesterday with no Errors!
Today after upgrading to 8.148 I get this. :S
_______________________________________
*** Configuration: WIN32 ***
precompiling:
GPC - GLBasic Precompiler V.8.110 SN:5fa0132f - 3D, NET
Wordcount:330 commands
compiling:

linking:
gpc_temp0.o:gpc_temp0.cpp:(.text+0x21fe): undefined reference to `__GLBASIC__::PRINT(__GLBASIC__::DGStr const&, double, double, int)'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x2258): undefined reference to `__GLBASIC__::PRINT(__GLBASIC__::DGStr const&, double, double, int)'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x34cc): undefined reference to `__GLBASIC__::PRINT(__GLBASIC__::DGStr const&, double, double, int)'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x35b8): undefined reference to `__GLBASIC__::PRINT(__GLBASIC__::DGStr const&, double, double, int)'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x36b3): undefined reference to `__GLBASIC__::PRINT(__GLBASIC__::DGStr const&, double, double, int)'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x37a0): more undefined references to `__GLBASIC__::PRINT(__GLBASIC__::DGStr const&, double, double, int)' follow
*** FATAL ERROR - Please post this output in the forum
_______________________________________
*** Finished ***
Elapsed: 8.4 sec. Time: 12:23
Build: 0 succeeded.
*** 1 FAILED ***


johngood.
Dell Dimension 9200: Core 2 Duo 2.40GHz, 2GB Ram, ATI Radeon X1300Pro, Windows XP Pro SP3
Intel Mac SnowLeopard 10.6.4 Core 2 Duo 2.4GHz 2GB Ram
iPod Touch 2G 4.0 16 GB, iPod Touch 4G 4.1 32 GB

MrTAToad

What code are you compiling ?

This works fine :

Code (glbasic) Select
PRINT "Test",0,0
PRINT "Test",0,0,FALSE
PRINT "Test",0,0,TRUE


I bet you have a function called PRINT somewhere - the compiler is a lot stricter (and rightly so) about using reserved keywords in functions...

johngood

Hi MrTAToad,

You are partly right 4 of the Errors are due to copy code from Uncle's 'iPhone Touch Feature Example'
namely the 'FUNCTION printMouseStatus:id,x,y'

The other two come from my following function:

FUNCTION Panim: ax,ay,a
LOCAL i,x,y
x = ax
y = ay
IF frame > 6 THEN Pcell(5,5,13)
PRINT ax,120,100   //---------> This line causes 1 Error see below  ::)
PRINT ay,120,140     //---------> This line causes 1 Error see below  ::)
x = x * cellsize
y = y * cellsize
   IF frame < 7
   DRAWANIM a,frame,x,y
   ENDIF
ENDFUNCTION

gpc_temp0.o:gpc_temp0.cpp:(.text+0x19fe): undefined reference to `__GLBASIC__::PRINT(__GLBASIC__::DGStr const&, double, double, int)'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x2835): undefined reference to `__GLBASIC__::PRINT(__GLBASIC__::DGStr const&, double, double, int)'
*** FATAL ERROR - Please post this output in the forum

johngood.
Dell Dimension 9200: Core 2 Duo 2.40GHz, 2GB Ram, ATI Radeon X1300Pro, Windows XP Pro SP3
Intel Mac SnowLeopard 10.6.4 Core 2 Duo 2.4GHz 2GB Ram
iPod Touch 2G 4.0 16 GB, iPod Touch 4G 4.1 32 GB

MrTAToad

As this compiles okay :

Code (glbasic) Select
GLOBAL cellsize, frame

FUNCTION Panim: ax,ay,a
LOCAL i,x,y
x = ax
y = ay
//IF frame > 6 THEN Pcell(5,5,13)
PRINT ax,120,100   //---------> This line causes 1 Error see below 
PRINT ay,120,140     //---------> This line causes 1 Error see below 
x = x * cellsize
y = y * cellsize
   IF frame < 7
   DRAWANIM a,frame,x,y
   ENDIF
ENDFUNCTION


I suspect there are other functions (or variables) with PRINT in them elsewhere...

johngood

Hi,

I don't know which version of the compiler you are using!
I have loaded a Sample file 'DarwSprite' which has a normal PRINT Statement:

PRINT "Bubble-Size x: "+sx+" y: "+sy,0,400

and I get...
*** Configuration: WIN32 ***
precompiling:
GPC - GLBasic Precompiler V.8.110 SN:5fa0132f - 3D, NET
Wordcount:24 commands
compiling:

linking:
gpc_temp0.o:gpc_temp0.cpp:(.text+0x391): undefined reference to `__GLBASIC__::PRINT(__GLBASIC__::DGStr const&, double, double, int)'
*** FATAL ERROR - Please post this output in the forum

I think something has gone wrong with my upgrade from 8.126 to 8.148! ;)
Do I just extract 'backup-8.125.zip' into the GLBasic Directory and test it then Upgrade again? ;/

johngood
Dell Dimension 9200: Core 2 Duo 2.40GHz, 2GB Ram, ATI Radeon X1300Pro, Windows XP Pro SP3
Intel Mac SnowLeopard 10.6.4 Core 2 Duo 2.4GHz 2GB Ram
iPod Touch 2G 4.0 16 GB, iPod Touch 4G 4.1 32 GB

Ian Price

#5
I've updated to the most recent version of GB - GLBasic IDE, Version: 8.148 and the Sample "DrawSprite" works fine here.

I came. I saw. I played.

MrTAToad

Yes, its fine here too :

GPC - GLBasic Precompiler V.8.110 SN:c5e44a33 - 3D, NET
Wordcount:24 commands
compiling:

linking:
success

One thing you could try before unzipping the backup file is deleting the print line and re-typing it in again.

Another is to clear everything in %TEMP%/glbasic

johngood

Hi,

un-installed GLBasic SDK 8.148
Installed GLBasic SDK 8.078
Upgraded to GLBasic SDK 8.148

Everything is back to normal... :good:
Thank You.

Regards,
johngood.
Dell Dimension 9200: Core 2 Duo 2.40GHz, 2GB Ram, ATI Radeon X1300Pro, Windows XP Pro SP3
Intel Mac SnowLeopard 10.6.4 Core 2 Duo 2.4GHz 2GB Ram
iPod Touch 2G 4.0 16 GB, iPod Touch 4G 4.1 32 GB

MrTAToad


Kitty Hello

the header file glb.h seems to have not been overwritten with the update. Now tell me that it's windows 7, please :/