Multiple source files

Previous topic - Next topic

kaotiklabs


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?
Vote Cthulhu! Because the stars are right!!!!
Ia Ia Cthulhu F' tang!

Moru

Did you mabe forget to close a function declaration in the other source file? Can we see some example code please?

MrTAToad

Does sound like an ENDFUNCTION or similar is missing...

Schranz0r

make sure you have a empty line on end off the sourcecode... its a bug, but i think gernot fix it... hmmm
I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

kaotiklabs

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.
Vote Cthulhu! Because the stars are right!!!!
Ia Ia Cthulhu F' tang!

Kitty Hello

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).

MrTAToad

Sounds like iPhone development is nearly finished, then!