Author Topic: GBAL Problem  (Read 1944 times)

Offline aonyn

  • Mr. Polyvector
  • ***
  • Posts: 136
    • View Profile
GBAL Problem
« on: 2011-Oct-02 »
Hi Gernot,

I just started back into a GLBasic Project, after some time away (family stuff).
Anyway, I have updated to the latest GLBasic version 10.118.

I have a very simple gbal file I created, which contains a TYPE with some parameters and functions (a class basically)

Everything works fine when it is used as a gbas file.
when I compress to library, and try to use the gbal in my project instead of the gbas, I get the following error.

Code: (glbasic) [Select]
*** Configuration: WIN32 ***
precompiling:
GPC - GLBasic Precompiler V.10.074 SN:380c888f - 3D, NET
"DM_GUI_Test.gbas"(17) error : user type is not defined : TYPE FPS_Counter is not declared

FPS_Counter is the TYPE contained within the gbal of course.

However, if I rename the gbal extension to gbas, and add that to my project instead, it works as expected.

Is this a known issue with gbal files containing a TYPE (class)?

Thanks,
Dave
For by grace are ye saved through faith, and that not of yourselves: it is the gift of God: Not of works, lest any man should boast. -Ephesians 2:8-9

MrTAToad

  • Guest
Re: GBAL Problem
« Reply #1 on: 2011-Oct-02 »
Yes, I mentioned it to Gernot last week (had trouble with a sample program).

Offline aonyn

  • Mr. Polyvector
  • ***
  • Posts: 136
    • View Profile
Re: GBAL Problem
« Reply #2 on: 2011-Oct-02 »
Thanks MrTAToad,

I guess since it is a known issue, I shall just sit back and wait patiently for the update  :)

Regards,
Dave
For by grace are ye saved through faith, and that not of yourselves: it is the gift of God: Not of works, lest any man should boast. -Ephesians 2:8-9