Building binaries with gba3 sometimes fails

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Building binaries with gba3 sometimes fails

alexchernoff
Dear all,

I come in peace. I have some shell scripts to batch compile a bunch of Gambas 3 projects. Sometimes I notice the gbr3 builds an executable, but it it does NOT include some latest and saved changes...

I have to open the project and run it in the IDE, close IDE, and gbr3 it again for it to work.

Anybody know why?

thanks!
Reply | Threaded
Open this post in threaded view
|

Re: Building binaries with gba3 sometimes fails

gambas-user mailing list
Le 19/06/2017 à 12:54, alexchernoff a écrit :

> Dear all,
>
> I come in peace. I have some shell scripts to batch compile a bunch of
> Gambas 3 projects. Sometimes I notice the gbr3 builds an executable, but it
> it does NOT include some latest and saved changes...
>
> I have to open the project and run it in the IDE, close IDE, and gbr3 it
> again for it to work.
>
> Anybody know why?
>
> thanks!
>
>

gbr3 does not take into account your last changes. Only gbc3 (the
compiler) does.

--
Benoît Minisini

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user
Reply | Threaded
Open this post in threaded view
|

Re: Building binaries with gba3 sometimes fails

alexchernoff
sorry, I meant I compile using gba3. Or does it also not account for changes?

thanks!
Reply | Threaded
Open this post in threaded view
|

Re: Building binaries with gba3 sometimes fails

gambas-user mailing list
Le 19/06/2017 à 13:00, alexchernoff a écrit :
> sorry, I meant I compile using gba3. Or does it also not account for changes?
>
> thanks!
>

Yes, I understood you meant gba3. And gba3 is not a compiler, it's an
archiver. It does not take your changes into account.

--
Benoît Minisini

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user
Reply | Threaded
Open this post in threaded view
|

Re: Building binaries with gba3 sometimes fails

alexchernoff
Okay,

so if i run gbc3 on the project before gba3, it should compile it and then archive it, right?

peace!

Reply | Threaded
Open this post in threaded view
|

Re: Building binaries with gba3 sometimes fails

Tobias Boege-2
On Mon, 19 Jun 2017, alexchernoff wrote:
> Okay,
>
> so if i run gbc3 on the project before gba3, it should compile it and then
> archive it, right?
>
> peace!
>

Yes:

  gbc3 is the compiler, it compiles your source code into object files
       (stored inside the hidden .gambas/ directory in your project).
  gbx3 is the interpreter, it executes the object files created by the
       compiler.
  gba3 is the archiver, it takes the object files and all ressources
       and puts them into an executable archive (*.gambas file).
  gbr3 is also the interpreter, specialised to running *.gambas files.

So, whatever you do (except compiling), you have to compile first to
make sure your object files are up-to-date.

The are more obscure Gambas utilities which don't require compilation
because they take plain-text Gambas source code and compile it auto-
matically:

  gbs3 is the scripter, it executes plain-text Gambas scripts.
  gbw3 is the web scripter, it executes so-called Gambas server pages
       and always includes gb.web.

Regards,
Tobi

--
"There's an old saying: Don't change anything... ever!" -- Mr. Monk

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user