correct to set -nostdinc and then include <stdarg.h> ?

Chris Friesen (cfriesen@nortelnetworks.com)
Mon, 07 Apr 2003 00:41:22 -0400


I was trying to compile 2.5.66 with gcc 3.2.2. It dies as soon as it tries to
compile init/main.c because it is unable to find "stdarg.h" which is included by
"include/linux/kernel.h".

The "-nostdinc" flag is set in the compile options. If I remove that flag, that
particular file appears to compile fine.

It seems wrong to tell the compiler to not look in the standard places but then
include a standard file. Am I missing something?

Other compiler versions work fine, so I'm guessing the compiler now interprets
the flag more strictly than before.

What is the proper way to deal with this?

Chris

-- 
Chris Friesen                    | MailStop: 043/33/F10
Nortel Networks                  | work: (613) 765-0557
3500 Carling Avenue              | fax:  (613) 765-2986
Nepean, ON K2H 8E9 Canada        | email: cfriesen@nortelnetworks.com

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/