[Scons-users] Fwd: Help with scons: warning: No dependency generated for file: stdlib.h

Dirk Bächle tshortik at gmx.de
Tue Apr 8 14:03:47 EDT 2014


Hi Jason,

On 08.04.2014 19:42, Jason Fritz wrote:

> Hi all,

>

> It seems the problem is related to turning on all warnings

> (specifically the DependencyWarning class), but shouldn't that be a

> safe "best practice"?

>


, you mean like everyone compiles his C/CPP files with "-Wall -Wextra
-Werror" by default? ;)

I can understand that you'd really like to get rid of warnings, because
they're often the path to full-grown errors and clutter the output. But
there is a good reason to simply ignore these warnings in your case.
As you suggested, you could add the required include paths for the
system headers to CPPPATH. Then the warnings would go away, but you'd
have much larger update times because SCons now checks the system
headers for changes too. Every time, even though they'll never
change...well not *never*, but the chances for this are rather low.

So, both of your solutions are fine, you just have to pick the best
tradeoff "no warnings" vs. "update speed" for your case.


Best regards,

Dirk



More information about the Scons-users mailing list