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.
Can i find somewhere an example of this approach?
all: 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.
Cheers
Lex
Thx!