GLBasic forum

Main forum => Bug Reports => Topic started by: kaotiklabs on 2009-Jun-12

Title: Multiple source files
Post by: kaotiklabs on 2009-Jun-12

I have problems using multiple source files.
I?m using last version: 6.248

If i?ve got 2 files there?s no problem but when I try to add one more and compile this message appears:
Code (glbasic) Select

*** Configuration: WIN32 ***
precompiling:
GPC - GLBasic Precompiler V.2009.113 - 3D, NET
"start_theme.gbas"(0) error : command not inside function or sub


"start_theme.gbas" is the third file added to the project.
The error arrow is pointing the second line of the file that (is a //comment!).
If I erase the comments the problems persist pointing now to code lines, giving the same error.

Any idea?
Title: Re: Multiple source files
Post by: Moru on 2009-Jun-12
Did you mabe forget to close a function declaration in the other source file? Can we see some example code please?
Title: Re: Multiple source files
Post by: MrTAToad on 2009-Jun-13
Does sound like an ENDFUNCTION or similar is missing...
Title: Re: Multiple source files
Post by: Schranz0r on 2009-Jun-13
make sure you have a empty line on end off the sourcecode... its a bug, but i think gernot fix it... hmmm
Title: Re: Multiple source files
Post by: kaotiklabs on 2009-Jun-13
Mhh Schranz0r you are right.

Solved it adding a new blank line at the end of the third source file.

The bug, so is still unfixed.
Title: Re: Multiple source files
Post by: Kitty Hello on 2009-Jun-15
it's fixed in V7, but it's not out, yet. I'm waiting for my Apple enrollment ID, yet. Apart from that I fix a few tiny bugs every now and then. It's going to be a rock-solid release this time. (At least supposed to be).
Title: Re: Multiple source files
Post by: MrTAToad on 2009-Jun-15
Sounds like iPhone development is nearly finished, then!