This is all driven by which folders you tell eclipse are your source folders.  
Tell it the correct set of folders and it will only attempt to compile those.

I work in Java, and I generally have a structure like this:

project
        _darcs
        src
        test_src
        classes
        test_classes
(among others)

I then make sure to tell eclipse that only project/src and project/test_src are 
the source folders, and not project.  Everything works fine after that.  I'm 
guessing you accidentally accepted what they (erroneously) automatically 
identified as your source folders when you created the project (i.e., the 
"project" root) and that's how you got hosed.

To fix this, right-click on the project's icon in the tree, and select 
"Properties".  Then go into whatever the C equivalent is of the "Java Build 
Path" section, and click on the "Source" tab.  This is where your source 
folders are identified.

Eclipse isn't bad; it just takes a little getting used to.

HTH,

DR


> Is anyone else using darcs and eclipse?
> 
> I just started using eclipse (No choice) for an Altera NIOS2 
> project I'm 
> working on.
> 
> This is really a question for the eclipse forums but I 
> thought I would 
> check here first before I go digging through all the eclipse 
> docs/mailing lists.
> 
> Eclipse does IMHO a *massively* stupid thing.  It 
> _automagically_ picks 
> up  my _darcs dir in my project workspace and tries to 
> compile all the 
> .c files in it.  So the moment I add darcs support to my new 
> project I 
> get loads of duplicate symbols.  I've seen some bonehead 
> IDE's but thats 
> way up there in the list.
> 
> I can't see any options yet to make eclipse ignore the _darcs 
> dir or not 
>   auto pickup stuff.
> 
> -- 
> Richard A. Smith
> Bitworks, Inc

==============================================================================
Please access the attached hyperlink for an important electronic communications 
disclaimer: 

http://www.csfb.com/legal_terms/disclaimer_external_email.shtml

==============================================================================


_______________________________________________
darcs-users mailing list
[email protected]
http://www.abridgegame.org/mailman/listinfo/darcs-users

Reply via email to