Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Restoring shared object project
Restoring shared object project [message #775672] Fri, 06 January 2012 13:57 Go to next message
Michael Beatty is currently offline Michael BeattyFriend
Messages: 43
Registered: November 2011
Member
Way back when, I created a new C++ shared object project. I have been using it just fine, today, I come into work and for some reason, my project explorer is empty? My code is still sitting in my file system, but how to I restore my project.

I tried doing an import, to bring the project in, but Eclipse no longer knows that the project is a shared object project, and when my code compiles, the .so is not created. I know that the problem is because Eclipse doesn't know that is is a shared object project, so the automatically generated make file doesn't include the commands to make the .so. I suppose one option is to simply create my own makefile from scratch, but it was so much easier when Eclipse did all this for me.

How do I tell Eclipse that this is a shared object project? Or, better, yet, is there a way to simply recover all my settings from when I lost my project?
Re: Restoring shared object project [message #775677 is a reply to message #775672] Fri, 06 January 2012 14:06 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 2012.01.06 6:57, Michael Mising name wrote:
> Way back when, I created a new C++ shared object project. I have been
> using it just fine, today, I come into work and for some reason, my
> project explorer is empty? My code is still sitting in my file system,
> but how to I restore my project.
>
> I tried doing an import, to bring the project in, but Eclipse no longer
> knows that the project is a shared object project, and when my code
> compiles, the .so is not created. I know that the problem is because
> Eclipse doesn't know that is is a shared object project, so the
> automatically generated make file doesn't include the commands to make
> the .so. I suppose one option is to simply create my own makefile from
> scratch, but it was so much easier when Eclipse did all this for me.
> How do I tell Eclipse that this is a shared object project? Or, better,
> yet, is there a way to simply recover all my settings from when I lost
> my project?

This question is Eclipse CDT-specific enough that I think you'll get
much more and better help in that forum than this one.
Re: Restoring shared object project [message #775684 is a reply to message #775677] Fri, 06 January 2012 14:12 Go to previous messageGo to next message
Michael Beatty is currently offline Michael BeattyFriend
Messages: 43
Registered: November 2011
Member
Can a moderator please move this to the CDT forum? Or should I just start a new thread? Not much more annoying than a getting your wrist slapped by an anal moderator because you cross posted.
Re: Restoring shared object project [message #775696 is a reply to message #775672] Fri, 06 January 2012 14:37 Go to previous message
Michael Beatty is currently offline Michael BeattyFriend
Messages: 43
Registered: November 2011
Member
I figured it out.

Had to go to Properties -> C++ Build -> Settings -> Tool Settings -> GCC C++ Linker -> Shared Library Settings -> check the "shared" box.
Previous Topic:Eclipse won't start on Mac 10.5
Next Topic: save and restore editor state zoom position
Goto Forum:
  


Current Time: Wed Apr 24 17:54:11 GMT 2024

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

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

Back to the top