[Gambas-user] compiling a programm on the console

gambas at ...1938... gambas at ...1938...
Thu Nov 20 21:40:17 CET 2008


Hi Doriano!

I've kept that in mind. :-) ...during my investigations I always moved the 
executable out of the project directory, so the compiler had to do it's job!

It _seems_ to be like this:
1) Open the old source in the gambas IDE
2) Simply store it (there is no need to compile it)
3) move the old executable (just for safeness)
4) scp -r the whole project directory to the target machine
5) ssh to the target machine
6) gbc3 -va
7) gba3 -v
...and it works, like expected.

I know this description differs a little bit from my last posting, but I came 
to it, after I send my mail to the list.

Only performing steps 6 and 7 (with svn from today) on the "old" sources on 
the target machine, doesn't work.

I fiddled hours and hours to get rid of this...and there are chances, that I 
made something (anything??? :-)  ) wrong...but I have another "clean" 
machine, where I could verify this scenario. 

Greetz to Italy!! :-)))
Stevie

Am Donnerstag, 20. November 2008 21:07:39 schrieb Doriano Blengino:
> gambas at ...1938... ha scritto:
> > Hi List!
> >
> > Funny to answer his own question! :-))))
> > The trick is:
> > - Open the module-project in the IDE of your developing machine.
> > - Press CTRL+ALT+m (Don't know, if simply saving the project is
> > sufficient.) - Copy the $ProjectName.module-file into the project
> > directory on the target machine
> > - gbc3 -av
> > - gba3 -v
> >
> > Ready!!!! :-)
> >
> > @Benoit
> > When opening an "old" project with a newer version of the Gambas IDE, are
> > you doing any modifications on the source file?
> > Simply recompiling the old (unmodified) sources with the new version of
> > gbc3 was not successfull.
>
> I am not sure (only Benoit knows well enough) but consider: often
> compilers look at the date (modification time) of source-files and
> objects-files; if the object file exists and is no older than the
> source, they simply keep it. A "touch source-files" can fake the
> compiler into thinking the source has been modified, and a recompilation
> is needed. Perhaps there is a switch on the command line to obtain an
> unconditional build...
>
> Regards,







More information about the User mailing list