GLBasic forum

Main forum => Bug Reports => Topic started by: johngood on 2010-Oct-30

Title: GLBasic 8.148
Post by: johngood on 2010-Oct-30
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.
Title: Re: GLBasic 8.148
Post by: MrTAToad on 2010-Oct-30
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...
Title: Re: GLBasic 8.148
Post by: johngood on 2010-Oct-30
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.
Title: Re: GLBasic 8.148
Post by: MrTAToad on 2010-Oct-30
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...
Title: Re: GLBasic 8.148
Post by: johngood on 2010-Oct-30
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
Title: Re: GLBasic 8.148
Post by: Ian Price on 2010-Oct-30
I've updated to the most recent version of GB - GLBasic IDE, Version: 8.148 and the Sample "DrawSprite" works fine here.

Title: Re: GLBasic 8.148
Post by: MrTAToad on 2010-Oct-30
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
Title: Re: GLBasic 8.148
Post by: johngood on 2010-Oct-30
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.
Title: Re: GLBasic 8.148
Post by: MrTAToad on 2010-Oct-30
How odd  :blink:
Title: Re: GLBasic 8.148
Post by: Kitty Hello on 2010-Nov-09
the header file glb.h seems to have not been overwritten with the update. Now tell me that it's windows 7, please :/