[Geany-Users] Build command
elextr at xxxxx
Fri Aug 2 23:38:00 UTC 2013
On 3 August 2013 07:55, Gert Leenders <leenders.gert at gmail.com> wrote:
> P.S. You'd probably be better of to use a simple Makefile with Geany build
> commands, then you could compile your object files separately and link them
> into the final executable.
Matthew is right this is one longer term solution, but you still have to
get the commands working first :)
Was there a reason you moved from using .. to using absolute pathnames when
you moved the working command from the command line into Geany?
Unfortunately we can't see what was your working directory when you ran
gcc in the command line, so can't trace the ../..s to see if your absolute
directory paths are the same thing, but the most likely problem is that
they are not the same.
> Can i find somewhere an example of this approach?
See http://mrbook.org/tutorials/make/ for a somewhat abbreviated tutorial.
Specifically the minimal example that gives :
g++ main.cpp hello.cpp factorial.cpp -o hello
But with the command replaced by your working one of course :)
Note: that *must* be a Tab character before the command, no spaces.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Users