Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Given a project, how to change file holding the main c/cpp file?
Given a project, how to change file holding the main c/cpp file? [message #1819288] Sun, 12 January 2020 06:40 Go to next message
Mike ITExpert is currently offline Mike ITExpertFriend
Messages: 2
Registered: December 2019
Junior Member
hi All,

I have created a CDT C++ Managed build project. I need to be able to switch between two main cpp files (containing the main function.)

How can I do that ?

thank you
Re: Given a project, how to change file holding the main c/cpp file? [message #1819300 is a reply to message #1819288] Sun, 12 January 2020 17:49 Go to previous message
David VavraFriend
Messages: 1426
Registered: October 2012
Senior Member
A Managed Build is restricted to one executable per project.
You need to write your own Makefile with separate targets.
You can use the Build Targets view to select the target to build.
Previous Topic:cross compiler: eclipse build keep selecting the incorrect cross compiler
Next Topic: Debug configuration - HELP
Goto Forum:
  


Current Time: Thu Apr 25 23:45:23 GMT 2024

Powered by FUDForum. Page generated in 0.02624 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top