Eclipse CDT Does Not Exclude Explicitly Excluded Files

This is a discussion on Eclipse CDT Does Not Exclude Explicitly Excluded Files within the Tech Board forums, part of the Community Boards category; I'm having a problem with Eclipse Juno CDT, in which I instruct eclipse to exclude a source file from the ...

  1. #1
    Registered User
    Join Date
    Oct 2006
    Posts
    2,370

    Eclipse CDT Does Not Exclude Explicitly Excluded Files

    I'm having a problem with Eclipse Juno CDT, in which I instruct eclipse to exclude a source file from the build, but it simply ignores my exclusion. It continues to try to build the "excluded" files, and gives errors. I tried two different ways:

    1. Right click on file -> Properties -> C++ Build -> Exclude Resource from Build -> OK

    2. Right click on file -> Resource Configuration -> Exclude from Build... -> check all build configurations -> OK

    I don't know what else I can try. I'm really frustrated with this, and I have had no luck finding any other methods of excluding files from the build in searching the web.

    Am I missing something, or have I discovered a bug?

  2. #2
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Portugal
    Posts
    7,438
    I'm probably going to annoy you, but are you sure you aren't trying to exclude a source file with definitions declared on a header file?
    The programmer’s wife tells him: “Run to the store and pick up a loaf of bread. If they have eggs, get a dozen.”
    The programmer comes home with 12 loaves of bread.


    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  3. #3
    Registered User
    Join Date
    Oct 2006
    Posts
    2,370
    I have a subdirectory in my project - let's call it x for now - and x contains a subdirectory called backup. x/backup contains older versions of the files in x, but I don't want to build the files in x/backup because it produces linker multiple definition errors. I may have found a workaround. I found a reference to filters, but it just seems like a lot of hassle, and it makes no sense to me why the seemingly obvious method doesn't do what it claims to do.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. HELP: Exclude the highest and lowest number...
    By Ocin101 in forum C Programming
    Replies: 12
    Last Post: 07-21-2009, 01:51 AM
  2. Replies: 13
    Last Post: 09-24-2008, 06:16 PM
  3. How do you exclude libc using gcc?
    By ShortCoder in forum C Programming
    Replies: 7
    Last Post: 05-22-2004, 09:39 AM
  4. Explicitly calling destructor.
    By anonytmouse in forum C++ Programming
    Replies: 6
    Last Post: 03-11-2004, 12:51 AM
  5. how to exclude character input
    By Unregistered in forum C++ Programming
    Replies: 4
    Last Post: 03-01-2002, 08:20 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21