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.
main.cpp - how to get rid of it?
-
- CodeLite Veteran
- Posts: 98
- Joined: Thu Feb 18, 2010 10:54 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: main.cpp - how to get rid of it?
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
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
Make sure you have read the HOW TO POST thread
-
- CodeLite Veteran
- Posts: 98
- Joined: Thu Feb 18, 2010 10:54 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: main.cpp - how to get rid of it?
Thanks!
Helmut.
Helmut.