GLBasic forum

Main forum => Bug Reports => Topic started by: Albert on 2008-Mar-04

Title: Defining DIM outside from main
Post by: Albert on 2008-Mar-04
if you defining DIM outside from MAIN (I mean from an include gpas file or after some function) then you get strange compiler messages like '{' not expected in ...cpp and a message to please copy these errorcodes to the glBasic forums.
The preprocessor sould be fixed to prevent .cpp making if DIM defined in the wrong place
Title: Defining DIM outside from main
Post by: Kitty Hello on 2008-Mar-04
Code (glbasic) Select
FUNCTION foo:
ENDFUNCTION

DIM a[5] // like this??
Title: Defining DIM outside from main
Post by: Albert on 2008-Mar-04
Yes.
I tried your code: gcc freezed :D
Title: Defining DIM outside from main
Post by: Kitty Hello on 2008-Mar-04
fixed.