Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Nothing to build for project eclipse(not able to generate the executable)
Nothing to build for project eclipse [message #1840883] Wed, 28 April 2021 07:13 Go to next message
Asha Diggi is currently offline Asha DiggiFriend
Messages: 7
Registered: April 2021
Junior Member
Hi all,

I am not able to generate a exe for particular project,getting nothing to be build for project, what I did, I will explain below..

firstly I installed the eclipse IDE,then installed the visual C/C++ tool chain,then importing a hole VC++ project in Eclipse IDE while clicking

File->import->Project from folder or archive->import the source->finish

After this I am able to see the hole project folder in Eclipse IDE,

then I want to run that project so for that I created a new C/C++ project,

Righting clicking the import folder->import->C/C++->Existing project as Makefile project

then specifying
Project Name: "....."
Existing code location: "......."
Tool chain for indexer setting: "Microsoft visual C++"
while clicking finish able to see the project file and able to build it and run the project also(exe)...

but after some days later while running same project getting "nothing to be build for project" and not able to see the exe also.

So I tried once again importing hole folder ,then generating the new C/C++ project ,while generating new project able to give name of the project,location and toolchain but after clicking finish I am not able to see the new created project.

So my query is:
1.How to rebuild that old project and generate exe file ? OR

2.How to import the VC++ project in Eclipse IDE and run the project successfully?

Please suggest me.


Regards,
Asha.S.D
Re: Nothing to build for project eclipse [message #1840931 is a reply to message #1840883] Thu, 29 April 2021 06:05 Go to previous messageGo to next message
Asha Diggi is currently offline Asha DiggiFriend
Messages: 7
Registered: April 2021
Junior Member
Hi guys,

I am waiting for your response.






Re: Nothing to build for project eclipse [message #1841054 is a reply to message #1840931] Sun, 02 May 2021 11:07 Go to previous message
David VavraFriend
Messages: 1407
Registered: October 2012
Senior Member
Your account of what you've done is confusing.
The primary reason for using File->import->Project from folder or archive is to import an existing Eclipse project into the workspace.

It seems what you really wanted to do was to create a Makefile project using File->import.

  • File --> Import --> C/C++ --> Existing Code as Makefile Project
  • select a directory containing the source (or one of its ancestors)
    This will be the project directory
  • Fill out the dialog
  • press "Finish"

This will then create .project and .cproject files in the new project directory.

It's not clear how you got the makefile itself or even if you are using one.
At one time, Eclipse couldn't use the Visual project file and required you to use VC to generate a makefile.

Quote:
... while clicking finish able to see the project file and able to build it and run the project also(exe)...
but after some days later while running same project getting "nothing to be build for project" and not able to see the exe also.


It worked for a couple of days but then stopped working?
The normal make message would be make: Nothing to be done for 'all'.
It means that all resultant files (executable and objects) are up-to-date.
You should still be able to see the executable though.
I think there's something you aren't telling us.

  • Can you be more precise about how you do the build ?

    • What are you running to do the build (GNU Make, NMake, something else)?
    • how do you tell it what needs to be done?
    • how to you start the build?

  • Explain what you are doing to execute the program
  • Are you trying to build before every run?
    What were you doing when you got the "nothing to be build for project" message?

[Updated on: Sun, 02 May 2021 11:16]

Report message to a moderator

Previous Topic:Set cmake run/debug mode through the IDE control
Next Topic:Eclipse(mingw64) want to use WinMain instead main
Goto Forum:
  


Current Time: Fri Dec 03 08:19:23 GMT 2021

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

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

Back to the top