Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Problem with managed make
Problem with managed make [message #163515] Thu, 09 February 2006 06:53 Go to next message
Eclipse UserFriend
Originally posted by: martin.lechners.at

I have a little problem with managed make.

I have one c file in the root directory of my project.
All other c files are in different sub directories.

Managed make does not compile this c file any more - so I get many linker
errors.
I checked if the file is exlcuded but it didnt seem so.

I copied the file to a subdirectory and now it works.

Any suggestions how to solve this?

Strangely this error was not alway present.
I am running ecl 3.1.1 and cdt 3.0.1 - and I think it worked before on
this configuration. But surely on cdt 3.0.

Best regards
ML
Re: Problem with managed make [message #163596 is a reply to message #163515] Fri, 10 February 2006 02:18 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: norbert.ploett.maxi-dsl.de

Hi Martin,

> I have one c file in the root directory of my project.
> All other c files are in different sub directories.

did you create the subdirectories as source folders or as (simple) folders?
(From the project's context menu there are entries for New --> Folder and
New --> Source Folder)

If you create one or more source folders then the project root is not
considered a source folder anymore and files located there are not
processed. In this case you'll have to move all your .c files to a source
folder.


Norbert Ploett
Re: Problem with managed make [message #163612 is a reply to message #163596] Fri, 10 February 2006 02:43 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: martin.lechners.at

Hi Norbert

> did you create the subdirectories as source folders or as (simple) folders?
> (From the project's context menu there are entries for New --> Folder and
> New --> Source Folder)
> If you create one or more source folders then the project root is not
> considered a source folder anymore and files located there are not
> processed. In this case you'll have to move all your .c files to a source
> folder.

I have really no Idea.
Is there a way to determine if a folder is a soure folder or to change
that later on? (Found nothing in the properties tab)

Beside I red in the help the following:
------
Note that source folders can only be currently used with Standard Make
projects. Managed Make projects treat the entire project as a source
folder.
-----

Are you sure that could be the cause? (as I use managed make...)


Best regards

ML
Re: Problem with managed make [message #163619 is a reply to message #163612] Fri, 10 February 2006 04:02 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: norbert.ploett.maxi-dsl.de

> Is there a way to determine if a folder is a soure folder or to change
> that later on? (Found nothing in the properties tab)

In the C/C++ view source folders have a little round blue "C" decoration in
the lower left corner. Try creating one yourself then you'll see.

You can convert a simple folder into a source folder with the "New Source
Folder" wizard. I do not know of any way to convert a source folder back
into a simple folder.

> Beside I red in the help the following:
> ------
> Note that source folders can only be currently used with Standard Make
> projects. Managed Make projects treat the entire project as a source
> folder.
> -----

You are reading the docs. That's good! But I think that the documentation is
not up-to-date here.


Sorry I can't help you more.


Norbert
Re: Problem with managed make [message #163637 is a reply to message #163619] Fri, 10 February 2006 10:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: martin.lechners.at

> In the C/C++ view source folders have a little round blue "C" decoration in
> the lower left corner. Try creating one yourself then you'll see.

As far as I can see no folder is marked with that sign...

> Sorry I can't help you more.

No - thank you. Now I know of the existance of source folders ;)

Best regards.
ML
Re: Problem with managed make [message #163644 is a reply to message #163619] Fri, 10 February 2006 11:00 Go to previous message
Eclipse UserFriend
Originally posted by: martin.lechners.at

Strange development:

Yesterday I spent a little time to get the file compiled and in the end I
had to copy it to a different folder.

Today the compiler was complainig about double definition - so I deleted
the copy again.

Now it suddenly uses the file from the root dir...

Thanks for your help!
(Dont know how but the problem seems to have disappeared ;)

Best regards
ML
Previous Topic:Blank Outline - Indexer broken?
Next Topic:Any update on the CDT plan?
Goto Forum:
  


Current Time: Tue Jul 15 16:54:12 EDT 2025

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

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

Back to the top