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

General questions regarding the usage of CodeLite
jbarnesweb
CodeLite Curious
Posts: 3
Joined: Mon Apr 05, 2010 6:34 pm
Genuine User: Yes
IDE Question: C++
Contact:

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

Post 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!
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

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

Post 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
Make sure you have read the HOW TO POST thread
Post Reply