Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » managed make - excluding some source
managed make - excluding some source [message #531438] Tue, 04 May 2010 21:23 Go to next message
Eclipse UserFriend
Originally posted by: kgold.watson.ibm.com

When I create a managed make project and specify a directory, CDT
imports every source file.

I have some source in the directory that are not part of the executable.
However, CDT tries to compile and link them in, leading to massive errors.

Is there a way to either:
import just the files I want
import all the files and then exclude some from the build.

The obvious GUI would be to right click a file and exclude it, but I
don't see anything.

Perhaps the solution is to not use managed make and just create a
makefile manually? Is managed make worth learning?
Re: managed make - excluding some source [message #531466 is a reply to message #531438] Wed, 05 May 2010 06:32 Go to previous messageGo to next message
Axel Mueller is currently offline Axel MuellerFriend
Messages: 1973
Registered: July 2009
Senior Member
In the C/C++ Project Explorer you can right click on a file/folder and exclude it.

Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Re: managed make - excluding some source [message #531564 is a reply to message #531466] Wed, 05 May 2010 12:36 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: kgold.watson.ibm.com

I don't have a "Project Explorer" but I have "C/C++ Projects".

If that's it, the menu says:

New, Open, Open With, Active Build Configuration, Copy, Delete, Move,
Rename, Import, Export, Refresh, Add Bookmark, Team, Compare With,
Replace With, Properties, Refactor.

There are a few more that are greyed out, but none sound like exclude.

Which one do I want?

Axel Mueller wrote:
> In the C/C++ Project Explorer you can right click on a file/folder
> and exclude it.
Re: managed make - excluding some source [message #531599 is a reply to message #531564] Wed, 05 May 2010 13:58 Go to previous messageGo to next message
Andrew Gvozdev is currently offline Andrew GvozdevFriend
Messages: 257
Registered: July 2009
Senior Member
"C/C++ Projects" view was deprecated a while ago. To open Project Explorer, go to main menu, Window -> Show View -> Project Explorer.

Note that in CDT 7.0 "Exclude from Build" item was moved under "Resource Configurations" in the context menu.

Andrew
Re: managed make - excluding some source [message #531621 is a reply to message #531599] Wed, 05 May 2010 15:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: kgold.watson.ibm.com

Show View doesn't have "Project Explorer"

CDT 7.0!!! I installed CDT by the 'normal' Help - Software Updates -
Find and Install - and I got 3.1.2. I have Eclipse 3.2.1, which came
with my Linux distro.

I know that there are a lot of incompatibility issues between versions
of Eclipse and CDT. What should I be running?

Or should I just use a hand edited makefile?

Andrew Gvozdev wrote:
> "C/C++ Projects" view was deprecated a while ago. To open Project
> Explorer, go to main menu, Window -> Show View -> Project Explorer.
>
> Note that in CDT 7.0 "Exclude from Build" item was moved under
> "Resource Configurations" in the context menu.
Re: managed make - excluding some source [message #531650 is a reply to message #531621] Wed, 05 May 2010 17:04 Go to previous messageGo to next message
Andrew Gvozdev is currently offline Andrew GvozdevFriend
Messages: 257
Registered: July 2009
Senior Member
Eclipse User wrote on Wed, 05 May 2010 11:33
Originally posted by: kgold.watson.ibm.com

Show View doesn't have "Project Explorer"

CDT 7.0!!! I installed CDT by the 'normal' Help - Software Updates -
Find and Install - and I got 3.1.2. I have Eclipse 3.2.1, which came
with my Linux distro.


Ouch! There is Project Explorer in Other->General category but it does not provide an ability to exclude.

Quote:

I know that there are a lot of incompatibility issues between versions
of Eclipse and CDT. What should I be running?
Or should I just use a hand edited makefile?


You really should be running eclipse 3.5+CDT 6.0. You miss a lot. You can download prepackaged eclipse with C++ at http://www.eclipse.org/downloads/

and CDT 7.0 is even better. If you go to Development Builds tab you can try development version.

Andrew
Re: managed make - excluding some source [message #531882 is a reply to message #531650] Thu, 06 May 2010 13:20 Go to previous message
Eclipse UserFriend
Originally posted by: kgold.watson.ibm.com

Andrew Gvozdev wrote:
>
> Ouch! There is Project Explorer in Other->General category but it does
> not provide an ability to exclude.

So is this the basic principle?

Managed make = all C files in one directory, no extra C files, exactly
one main()

Standard make = files can be anywhere, extra C files allowed, more than
one main()
Previous Topic:GDB crashing when started from CDT
Next Topic:XML Parser
Goto Forum:
  


Current Time: Fri Mar 29 02:04:48 GMT 2024

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

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

Back to the top