|
Re: Eclipse will only compile one file [message #1837943 is a reply to message #1837926] |
Thu, 11 February 2021 08:55 |
Joost Kraaijeveld Messages: 273 Registered: July 2009 |
Senior Member |
|
|
Hi,
I think that you use the "run" button on the toolbar? That is set to run the executable from your "Project1". And if that is not the project that contains the main from your screen dump it runs the wrong program.
From you screen dump I deduce that you are learning C++. What I say to my students is that they should create a new project for each assignment/exercise and that they should always close all other projects except the one they are working on, until they are familiar enough with Eclipse. It prevents them from editing the wrong source files, compiling the wrong project and running the wrong executable.
Cheers,
Joost
|
|
|
Powered by
FUDForum. Page generated in 0.03000 seconds