FATAL ERROR (Demo-Version)

Previous topic - Next topic

H5N1

Hallo,

nachdem visual-studio-c++-express-schrott von microsoft mich mit fehlern überschüttet hat,
suchte ich nach etwas einfacherem -> GLBasic

doch gleich bei einem einfache beispiel bekomme ich auch x-Fehlermeldungen
was mache ich falsch? (bin neu :D)

hier der code:

Code (glbasic) Select
//Variablen
LET a = 3
LET y = a
LET x = 0

//Funktionen und Zuweisungen
LET ergebniss$ =  "["+ x + "|" + y + "]"

//Ausgabe
PRINT ergebniss$,0,20

//Anzeigen
SHOWSCREEN

//Beenden
END
wie ihr seht bin ich nicht weit gekommen,
will das heron-verfahren simulieren :D

und hier die fehler:

Code (glbasic) Select
*** Configuration: WIN32 ***
precompiling...

GPC - GLBasic Precompiler V.2006.327 - 2D, WIN32
compiling...
Heron.gbas (163 B )
"Heron.gbas"(2) warning : probably unassigned variable : a
"Heron.gbas"(5) warning : probably unassigned variable : x
"Heron.gbas"(5) warning : probably unassigned variable : y
"Heron.gbas"(7) warning : probably unassigned variable : ergebniss$
Wordcount:7 commands

compiling:
C:\DOKUME~1\ANDYCP~1\LOKALE~1\Temp\glbasic\gpc_temp0.cpp: In function `int __GLBASIC__::__MainGameSub_()':
C:\DOKUME~1\ANDYCP~1\LOKALE~1\Temp\glbasic\gpc_temp0.cpp:6: error: `LET' undeclared (first use this function)
C:\DOKUME~1\ANDYCP~1\LOKALE~1\Temp\glbasic\gpc_temp0.cpp:6: error: (Each undeclared identifier is reported only once for each function it appears in.)
C:\DOKUME~1\ANDYCP~1\LOKALE~1\Temp\glbasic\gpc_temp0.cpp:6: error: expected `;' before "a"
C:\DOKUME~1\ANDYCP~1\LOKALE~1\Temp\glbasic\gpc_temp0.cpp:7: error: expected `;' before "y"
C:\DOKUME~1\ANDYCP~1\LOKALE~1\Temp\glbasic\gpc_temp0.cpp:8: error: expected `;' before "x"
C:\DOKUME~1\ANDYCP~1\LOKALE~1\Temp\glbasic\gpc_temp0.cpp:9: error: expected `;' before "ergebniss_Str"

linking:
gpc_temp0.o:gpc_temp0.cpp:(.text+0x72): undefined reference to `__GLBASIC__::playfield'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x29b): undefined reference to `__GLBASIC__::playfield'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x387): undefined reference to `__GLBASIC__::clicks'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x406): undefined reference to `__GLBASIC__::level'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x5b1): undefined reference to `__GLBASIC__::playfield'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x5f7): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x612): undefined reference to `__GLBASIC__::playfield'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x61d): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x637): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x63c): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x660): undefined reference to `__GLBASIC__::clicks'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x666): undefined reference to `__GLBASIC__::clicks'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x792): undefined reference to `__GLBASIC__::playfield'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x7ee): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x7f4): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x80f): undefined reference to `__GLBASIC__::playfield'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x81a): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x857): undefined reference to `__GLBASIC__::playfield'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x8b3): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x8b9): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x8d4): undefined reference to `__GLBASIC__::playfield'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x8df): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x928): undefined reference to `__GLBASIC__::playfield'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x976): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x991): undefined reference to `__GLBASIC__::playfield'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x99c): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x9f6): undefined reference to `__GLBASIC__::playfield'
gpc_temp0.o:gpc_temp0.cpp:(.text+0xa44): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0xa4a): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0xa65): undefined reference to `__GLBASIC__::playfield'
gpc_temp0.o:gpc_temp0.cpp:(.text+0xa70): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0xa89): undefined reference to `__GLBASIC__::playfield'
gpc_temp0.o:gpc_temp0.cpp:(.text+0xadd): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0xae3): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0xafe): undefined reference to `__GLBASIC__::playfield'
gpc_temp0.o:gpc_temp0.cpp:(.text+0xb09): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0xb2a): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0xb30): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0xb3d): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0xb4a): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0xb57): more undefined references to `__GLBASIC__::set' follow
gpc_temp0.o:gpc_temp0.cpp:(.text+0xbe7): undefined reference to `__GLBASIC__::playfield'
gpc_temp0.o:gpc_temp0.cpp:(.text+0xc40): undefined reference to `__GLBASIC__::level'
gpc_temp0.o:gpc_temp0.cpp:(.text+0xc5e): undefined reference to `__GLBASIC__::level'
gpc_temp0.o:gpc_temp0.cpp:(.text+0xcaa): undefined reference to `__GLBASIC__::clicks'
gpc_temp0.o:gpc_temp0.cpp:(.text+0xcb8): undefined reference to `__GLBASIC__::clicks'
gpc_temp0.o:gpc_temp0.cpp:(.text+0xeac): undefined reference to `__GLBASIC__::level'
gpc_temp0.o:gpc_temp0.cpp:(.text+0xece): undefined reference to `__GLBASIC__::clicks'
gpc_temp0.o:gpc_temp0.cpp:(.text+0xede): undefined reference to `__GLBASIC__::clicks'
gpc_temp0.o:gpc_temp0.cpp:(.text+0xeeb): undefined reference to `__GLBASIC__::level'
gpc_temp0.o:gpc_temp0.cpp:(.text+0xfb7): undefined reference to `__GLBASIC__::playfield'
gpc_temp0.o:gpc_temp0.cpp:(.text+0xff2): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1009): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1011): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1052): undefined reference to `__GLBASIC__::playfield'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1064): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x108d): undefined reference to `__GLBASIC__::playfield'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x10c8): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x10df): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x10e7): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1128): undefined reference to `__GLBASIC__::playfield'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x113a): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1161): undefined reference to `__GLBASIC__::playfield'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x119c): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x11b3): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x11b9): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x11fe): undefined reference to `__GLBASIC__::playfield'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1210): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1237): undefined reference to `__GLBASIC__::playfield'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1272): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1289): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x128f): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x12d4): undefined reference to `__GLBASIC__::playfield'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x12e6): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x130d): undefined reference to `__GLBASIC__::playfield'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1348): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x135f): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1367): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x13a8): undefined reference to `__GLBASIC__::playfield'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x13ba): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x13f1): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1403): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1415): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1427): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x142c): more undefined references to `__GLBASIC__::set' follow
gpc_temp0.o:gpc_temp0.cpp:(.text+0x14fe): undefined reference to `__GLBASIC__::playfield'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1516): undefined reference to `__GLBASIC__::level'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x151c): undefined reference to `__GLBASIC__::level'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x157b): undefined reference to `__GLBASIC__::playfield'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x15ee): undefined reference to `__GLBASIC__::mx'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x15f3): undefined reference to `__GLBASIC__::b2'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x15f8): undefined reference to `__GLBASIC__::b1'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1601): undefined reference to `__GLBASIC__::my'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x161b): undefined reference to `__GLBASIC__::b1'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1632): undefined reference to `__GLBASIC__::mousefree'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x164d): undefined reference to `__GLBASIC__::mx'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1657): undefined reference to `__GLBASIC__::my'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x166b): undefined reference to `__GLBASIC__::clicks'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x167b): undefined reference to `__GLBASIC__::clicks'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x17f6): undefined reference to `__GLBASIC__::mousefree'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x182e): undefined reference to `__GLBASIC__::my'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x183b): undefined reference to `__GLBASIC__::mx'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x18c8): undefined reference to `__GLBASIC__::playfield'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1903): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x191a): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1920): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1964): undefined reference to `__GLBASIC__::playfield'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1976): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x19c0): undefined reference to `__GLBASIC__::playfield'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x19fb): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1a12): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1a18): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1a5c): undefined reference to `__GLBASIC__::playfield'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1a6e): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1ac7): undefined reference to `__GLBASIC__::mousefree'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1acd): undefined reference to `__GLBASIC__::mousefree'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1b00): undefined reference to `__GLBASIC__::playfield'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1b3b): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1b52): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1b58): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1b9c): undefined reference to `__GLBASIC__::playfield'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1bae): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1bd2): undefined reference to `__GLBASIC__::playfield'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1c0d): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1c24): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1c2a): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1c6e): undefined reference to `__GLBASIC__::playfield'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1c80): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1ca7): undefined reference to `__GLBASIC__::playfield'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1ce2): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1cf9): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1cff): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1d43): undefined reference to `__GLBASIC__::playfield'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1d55): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1d64): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1d71): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1d7e): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1d8b): undefined reference to `__GLBASIC__::set'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1d98): more undefined references to `__GLBASIC__::set' follow
*** FATAL ERROR - Bitte die Compiler-Ausgabe ins Forum kopieren
_______________________________________
*** Fertig ***
Zeit: 1.0 sek
Erstellen: 0 erfolgreich, 1 fehlgeschlagen
ich hoffe mir kann jemand helfen

danke im voraus
Andy

BumbleBee

Hi
Den Let Befehl brauchst du nicht. Der ist nur zur Zierde da.;)

Wenn du das END einfügst ohne das dein Programm auf ein Ereignis
wartet wird es sofort wieder beendet. Das heißt du siehst die Ausgabe gar
nicht. Also entweder KEYWAIT,MOUSEWAIT,eine Schleife oder ein
GOTO.
Ist jetzt vielleicht noch ungewohnt wenn mann von C++ kommt.

Code (glbasic) Select
//Variablen
a=3;y=a;x=0

ergebniss$ = "["+ x + "|" + y + "]"
//Ausgabe
PRINT ergebniss$,0,20

//Anzeigen
SHOWSCREEN
//Warten auf Tastendruck
KEYWAIT
END //Kannst du auch weglassen
Ich hoffe das ist das gewünschte Ergebnis.

Wenn die Ausgabe zu klein erscheint mußt du in der Werkzeugsammlung auf
Zeichensatz-creator und die Schrift ändern.

Cheers
The day will come...

CPU Intel(R) Core(TM) i5-3570k, 3.4GHz, AMD Radeon 7800 , 8 GB RAM, Windows 10 Home 64Bit

H5N1

funkt jetzt, viel dank
jetzt kann ich weiter rumbasteln ;)

Kitty Hello

Mein Fehler. Werd' ich mal ändern.

@BB - super erkannt!