Page 1 of 1

Settings...->Custom Build->Compile Single File

Posted: Mon Apr 05, 2010 7:46 pm
by jbarnesweb
I set up a project to use an existing makefile in Settings...->Custom Build.

The Makefile doesn't have a "compile single file" target, so I would like to add a command that calls g++ directly. Which macro expands to the .cpp file I right clicked on in the Workspace tree?

If I can't provide a file argument to g++, it will complain with "no input files".

Great job delivering the best gnu C++ IDE!

Re: Settings...->Custom Build->Compile Single File

Posted: Mon Apr 05, 2010 8:51 pm
by eranif
jbarnesweb wrote:Which macro expands to the .cpp file I right clicked on in the Workspace tree?
There is none.
The best you can get atm, is open the file that you want to compile in the editor, once it is opened and active, you can use the macro $(CurrentFileFullPath)

Eran