BASIC

Author Topic: Lib compiling problems  (Read 2823 times)

Offline monono

  • Mr. Polyvector
  • ***
  • Posts: 213
    • View Profile
    • Sockel Lernmedien
Lib compiling problems
« 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?

Offline Slydog

  • Prof. Inline
  • *****
  • Posts: 924
  • KodeSource
    • View Profile
    • KodeSource
Re: Lib compiling problems
« Reply #1 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.
My current project (WIP) :: TwistedMaze <<  [Updated: 2015-11-25]

Offline monono

  • Mr. Polyvector
  • ***
  • Posts: 213
    • View Profile
    • Sockel Lernmedien
Re: Lib compiling problems
« Reply #2 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.

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10638
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: Lib compiling problems
« Reply #3 on: 2010-Nov-23 »
what are you doing in detail. What library? .gbal or .a files?

Offline monono

  • Mr. Polyvector
  • ***
  • Posts: 213
    • View Profile
    • Sockel Lernmedien
Re: Lib compiling problems
« Reply #4 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?

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10638
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: Lib compiling problems
« Reply #5 on: 2010-Nov-29 »
the gbal is basically a binary gbas source file.

Offline monono

  • Mr. Polyvector
  • ***
  • Posts: 213
    • View Profile
    • Sockel Lernmedien
Re: Lib compiling problems
« Reply #6 on: 2010-Nov-29 »
Was heißt das jetzt für mich? :S

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10638
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: Lib compiling problems
« Reply #7 on: 2010-Nov-30 »
you cannot edit a gbal file. You need the gbas source for that library to change it.

Offline monono

  • Mr. Polyvector
  • ***
  • Posts: 213
    • View Profile
    • Sockel Lernmedien
Re: Lib compiling problems
« Reply #8 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.