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):
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 !
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.
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
@ Sechsrad:
Das sagt dir eh nix, und du kannst an diesen Fehler eh nix ändern !
Lass deine Glaskugel ruhig kaputt sein!
OK, beide Fehler gefunden.
1. READLONG wurde zu READ LONG (Doh!)
2. READ x // x war undefiniert
Update in Kürze (heute noch)
Thanks Gernot :)
CYA !
Müsste schon laufen.