Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » New here, how to include source from outside workspace/project?
New here, how to include source from outside workspace/project? [message #871272] Fri, 11 May 2012 17:36 Go to next message
Per Franck is currently offline Per FranckFriend
Messages: 2
Registered: May 2012
Junior Member
I'm new to eclipse, and I'm struggling with wrapping my head around how to set up a project.

I have a source repository (mercurial) which looks like this:
repository
-projectA
--eclipse project A
-projectB
--eclipse project B
-commonSource
--various c/h files


The workspace root is set to the repository, and I can see projectA and projectB as i start up eclipse. Now, I'm trying to compile the files in commonSource in both projectA and projectB, and I can't for the life of me figure out how to make the project include them... The closest i get is "import" which merely copies the files into the workspace (meaning they are not part of the repository anymore).

please lend a newbie a hand and explain how to do this Smile
Re: New here, how to include source from outside workspace/project? [message #871286 is a reply to message #871272] Fri, 11 May 2012 18:37 Go to previous message
Per Franck is currently offline Per FranckFriend
Messages: 2
Registered: May 2012
Junior Member
Okay, that was a doozy. If anyone else is having the same problem, here's how to do it.

img718.imageshack.us/img718/5613/howtoww.jpg

1. right click your project
2. click properties
3. click Paths and symbols under C/C++ General
4. click the "source location" tab
5. click the "create / link folder" button
6. click the "advanced" button
7. check "link to folder in the file system"
8. click the "browse" button
9. locate your folder, and ok all the way out.

no sweat! (now compare to visual studio: right click project, insert existing file)

also, yes, the command server project name is after Fred Noonan
Previous Topic:problem at Installation
Next Topic:The specified JRE installation does not exist
Goto Forum:
  


Current Time: Fri Mar 29 05:04:45 GMT 2024

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

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

Back to the top