managed make - excluding some source [message #531438] |
Tue, 04 May 2010 21:23 |
Eclipse User |
|
|
|
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 #531564 is a reply to message #531466] |
Wed, 05 May 2010 12:36 |
Eclipse User |
|
|
|
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 #531621 is a reply to message #531599] |
Wed, 05 May 2010 15:33 |
Eclipse User |
|
|
|
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 #531882 is a reply to message #531650] |
Thu, 06 May 2010 13:20 |
Eclipse User |
|
|
|
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()
|
|
|
Powered by
FUDForum. Page generated in 0.05002 seconds