Page 1 of 1

main.cpp - how to get rid of it?

Posted: Thu Mar 04, 2010 10:46 pm
by HJarausch
Hi,

when I create a g++ console project CodeLite automatically generates a file 'main.cpp', which I normally don't want.
If I then create another project in the same workspace, it fails because there is already a file 'main.cpp'.
So, I have to remove it each time.

Is there an option to disable generating this dummy main.cpp file?

Many thanks for a hint,
Helmut.

Re: main.cpp - how to get rid of it?

Posted: Thu Mar 04, 2010 11:34 pm
by eranif
1) Create a project with main.cpp.
2) remove the file main.cpp
3) save the project as template (right click the project 'Save as template'), give it a name 'Console with no main' (or anything else...)

From this point on, use your newly created template instead of the default one when creating new projects.

Eran

Re: main.cpp - how to get rid of it?

Posted: Fri Mar 05, 2010 12:02 am
by HJarausch
Thanks!
Helmut.