GLBasic forum

Codesnippets => Userlibs [ *.gbal] => Topic started by: monono on 2010-Nov-22

Title: Lib compiling problems
Post by: monono on 2010-Nov-22
I am just trying to include a library I made in another project. Without even using a function from that lib GLBasic says while compiling, that it is a library and cannot be changed. What could be the reason for that?
Title: Re: Lib compiling problems
Post by: Slydog on 2010-Nov-22
Is it an error, or a warning / notice?
I would think it's just a notice, and that you can't change a library (it's static).
You'd have to change the original source and recreate the library is what I think it's telling you.
Title: Re: Lib compiling problems
Post by: monono on 2010-Nov-23
It´s an error! The message comes with it´s own message window.
The compiler says: error : command not inside function or sub
Quote
I would think it's just a notice, and that you can't change a library (it's static).
You'd have to change the original source and recreate the library is what I think it's telling you.
Even I would try I couldn't change a lib. I know. Same Project with the lib's origin files work. The lib doesn´t try to change itself either.
Title: Re: Lib compiling problems
Post by: Kitty Hello on 2010-Nov-23
what are you doing in detail. What library? .gbal or .a files?
Title: Re: Lib compiling problems
Post by: monono on 2010-Nov-27
Just haven´t seen the reply, yet.
It´s a .gbal from my 2d Framework. I had made a .gbal from an earlier stage of the framework and it worked as expected.
Maybe I did something wrong. To make the .gbal. I deleted the main file from a project which used the framework as a bunch of files. then the first file of 8 framework files became the main file. At that point I made the gbal. Or is there anything that should´t be done in lib? Any rules to follow?
Title: Re: Lib compiling problems
Post by: Kitty Hello on 2010-Nov-29
the gbal is basically a binary gbas source file.
Title: Re: Lib compiling problems
Post by: monono on 2010-Nov-29
Was heißt das jetzt für mich? :S
Title: Re: Lib compiling problems
Post by: Kitty Hello on 2010-Nov-30
you cannot edit a gbal file. You need the gbas source for that library to change it.
Title: Re: Lib compiling problems
Post by: monono on 2010-Dec-07
I know that. I never tried to edit the gbal!
But the Problem is solved anyway: As I was copy and pasting all the files of the framework into one file for making the lib I changed the order. The gbas with all the types in it wasn´t first.