Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » How to regenerate a subdir.mk?
How to regenerate a subdir.mk? [message #210769] Thu, 28 February 2008 09:18 Go to next message
Eclipse UserFriend
Hi all,

How do I regenerate the subdir.mk file for a C Managed Project in
Eclipse (Europa)?

I added an include path for a project (Debug configuration), and
although visible in the interface it didn't actually propagate fully
through the on-disk files used for building.

(Found this out after spending a lot of frustrating time trying to
figure out why:

#include "/tmp/ming/include/ming.h"

worked, but:

#include <ming.h>

didn't.)

Looking at the subdir.mk file that was in the Debug subdirectory, it was
timestamped as of September last year. (Ouch!)

Thinking Eclipse would just regenerate a new one if I blew it away and
made some project configuration changes, I did just that. (The file DID
say it was autogenerated, and not to touch it).

However, now my project won't build and no amount of changes to the
indexer, configuration, etc seem to be getting Eclipse to rebuild the
subdir.mk or related supporting files.

Figured I'd ask here for assistance, as the Search function on the
Eclipse site is not being helpful, nor is Google, etc. :-/

Regards and best wishes,

Justin Clift

--
The Flame Project - Open Source GUI for eLearning content
www.flameproject.org - creation with swf (Flash)
Re: How to regenerate a subdir.mk? [message #210869 is a reply to message #210769] Thu, 28 February 2008 21:39 Go to previous messageGo to next message
Eclipse UserFriend
Justin Clift wrote:
> Hi all,
>
> How do I regenerate the subdir.mk file for a C Managed Project in
> Eclipse (Europa)?

As it turns out, if I delete the Debug directory then it gets rebuilt
(with refreshed subdir.mk and other files) the next time the project is
rebuilt.

So, problem solved there.

Strange that the subdir.mk wasn't being properly updated by Eclipse
automatically though. (probably Yet Another Eclipse Bug)

Regards and best wishes,

Justin Clift
Re: How to regenerate a subdir.mk? [message #802168 is a reply to message #210769] Sun, 19 February 2012 09:30 Go to previous message
Eclipse UserFriend
Same problem here - this sort of strange behaviors waste SO much time, especially for (semi) newbies like myself. Its absolutely horrible.

Too bad, this kind of problems are exactly the ones that make me wish i was programming @ windows with visual studio, despite loving open source.
Previous Topic:External global variables parsing problem in C project
Next Topic:undefined reference to `_imp__wglGetProcAddress@4' etc.
Goto Forum:
  


Current Time: Sun May 11 22:52:19 EDT 2025

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

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

Back to the top