GLBasic forum

Main forum => Bug Reports => Topic started by: Achim on 2008-Mar-12

Title: Fehlermeldung nach letzten Update 12.03.08 von GLB
Post by: Achim on 2008-Mar-12
Hallo Gernot,

habe heute den neuesten Patch installiert und bekomme folgende Fehlermeldung während des Kompilerlaufs:

_______________________________________
*** Configuration: WIN32 ***
precompiling:
GPC - GLBasic Precompiler V.2008.072 - 3D, NET
Wordcount:1752 commands

compiling:
C:\DOKUME~1\Nuwanda\LOKALE~1\Temp\glbasic\gpc_temp0.cpp: In function `DGInt __GLBASIC__::readscore()':
C:\DOKUME~1\Nuwanda\LOKALE~1\Temp\glbasic\gpc_temp0.cpp:783: error: `LONG' was not declared in this scope
C:\DOKUME~1\Nuwanda\LOKALE~1\Temp\glbasic\gpc_temp0.cpp:785: error: `LINE' was not declared in this scope
*** FATAL ERROR - Bitte die Compiler-Ausgabe ins Forum kopieren
_______________________________________
*** Fertig ***
Zeit: 1.1 sek
Erstellen: 0 erfolgreich
*** 1 FEHLGESCHLAGEN ***


*** Configuration: GP2X ***
precompiling:
GPC - GLBasic Precompiler V.2008.072 - 3D, NET
Wordcount:1752 commands

compile+link:
C:\DOKUME~1\Nuwanda\LOKALE~1\Temp\glbasic\gpc_temp0.cpp: In function 'DGInt __GLBASIC__::readscore()':
C:\DOKUME~1\Nuwanda\LOKALE~1\Temp\glbasic\gpc_temp0.cpp:783: error: expected primary-expression before ')' token
C:\DOKUME~1\Nuwanda\LOKALE~1\Temp\glbasic\gpc_temp0.cpp:785: error: 'LINE' was not declared in this scope
C:\DOKUME~1\Nuwanda\LOKALE~1\Temp\glbasic\gpc_temp0.cpp:787: error: expected primary-expression before ')' token
C:\DOKUME~1\Nuwanda\LOKALE~1\Temp\glbasic\gpc_temp0.cpp:789: error: no matching function for call to 'READ()'
C:\Programme\GLBasic\Compiler\platform\Include/glb.h:411: note: candidates are: void __GLBASIC__::READ(DGInt&)
C:\Programme\GLBasic\Compiler\platform\Include/glb.h:412: note:                 void __GLBASIC__::READ(__GLBASIC__::DGStr&)
C:\DOKUME~1\Nuwanda\LOKALE~1\Temp\glbasic\gpc_temp0.cpp:791: error: expected primary-expression before ')' token
C:\DOKUME~1\Nuwanda\LOKALE~1\Temp\glbasic\gpc_temp0.cpp:793: error: no matching function for call to 'READ()'
C:\Programme\GLBasic\Compiler\platform\Include/glb.h:411: note: candidates are: void __GLBASIC__::READ(DGInt&)
C:\Programme\GLBasic\Compiler\platform\Include/glb.h:412: note:                 void __GLBASIC__::READ(__GLBASIC__::DGStr&)
*** FATAL ERROR - Bitte die Compiler-Ausgabe ins Forum kopieren
_______________________________________
*** Fertig ***
Zeit: 1.5 sek
Erstellen: 0 erfolgreich
*** 1 FEHLGESCHLAGEN ***




Hier die wohl betreffende SUB-Routine (die bis  dato allerdings nie Probleme machte):


Code (glbasic) Select
SUB readscore:

OPENFILE(1, "hc.txt", TRUE)
READLONG 1, highscore[0]
READLINE 1, highscorename$[0]
READLONG 1, highscore[1]
READLINE  1, highscorename$[1]
READLONG 1, highscore[2]
READLINE 1, highscorename$[2]
CLOSEFILE 1
temphighscore=highscore[0]

ENDSUB // READSCORE
:(

CYA !
Title: Fehlermeldung nach letzten Update 12.03.08 von GLB
Post by: AndyH on 2008-Mar-12
I get the same error.  Mine just with LINE though.  My function is also using OPEN / READ as it happens.  Reverting back to backup 198 will allow you to carry on working as normal though, look in your GL Basic folder.
Title: Fehlermeldung nach letzten Update 12.03.08 von GLB
Post by: sechsrad on 2008-Mar-12
meine glaskugel ist kaputt, kannste mal den ganzen lauffähigen code reinsetzen, so kann man keine analyse machen und den probelauf um den fehler zu finden.

mfg
Title: Fehlermeldung nach letzten Update 12.03.08 von GLB
Post by: Schranz0r on 2008-Mar-12
@ Sechsrad:

Das sagt dir eh nix, und du kannst an diesen Fehler eh nix ändern !
Lass deine Glaskugel ruhig kaputt sein!
Title: Fehlermeldung nach letzten Update 12.03.08 von GLB
Post by: Kitty Hello on 2008-Mar-13
OK, beide Fehler gefunden.
1. READLONG wurde zu READ LONG (Doh!)
2. READ x // x war undefiniert
Update in Kürze (heute noch)
Title: Fehlermeldung nach letzten Update 12.03.08 von GLB
Post by: Achim on 2008-Mar-13
Thanks  Gernot :)

CYA !
Title: Fehlermeldung nach letzten Update 12.03.08 von GLB
Post by: Kitty Hello on 2008-Mar-13
Müsste schon laufen.