GLBasic forum

Main forum => GLBasic - en => Topic started by: Lazarus on 2007-Mar-29

Title: Fatal error
Post by: Lazarus on 2007-Mar-29
Hello.

I'm getting this error when trying to run a program:

Code (glbasic) Select
C:/DOCUME~1/COMPAQ~1/LOCALS~1/Temp/glbasic/gpc_temp0.cpp: In function `int __GLBASIC__::__MainGameSub_()':
C:/DOCUME~1/COMPAQ~1/LOCALS~1/Temp/glbasic/gpc_temp0.cpp:228: error: expected primary-expression before "get_input"
C:/DOCUME~1/COMPAQ~1/LOCALS~1/Temp/glbasic/gpc_temp0.cpp:228: error: expected `;' before "get_input"
*** FATAL ERROR - Please post this output in the forum
Title: Fatal error
Post by: Kitty Hello on 2007-Mar-29
You should post the code. At least the code for the main sub (that's the part before the first SUB/FUNCTION.
Title: Fatal error
Post by: Lazarus on 2007-Mar-29
Sorry - I found the problem just now - I had left out an endif inside the main loop, and since this particular program uses types, I guess that messed it up.