Weird linking-problem
Andreas Schwab
schwab@issan.informatik.uni-dortmund.de
Wed Jul 1 06:36:00 GMT 1998
deas@uni-hamburg.de (Andreas Steffan) writes:
|> Preprocessed:
|>
|> gcc -ggdb -O2 -Wall -Woverloaded-virtual -Wno-unused -Wno-uninitialized -I. -I.. -c -I/usr/X11R6/include -I/usr/include saveload.cpp -E >saveload.cpp.pre
This is the bad line:
struct stat statbuf; extern int errno;
After preprocessing this expands to:
struct stat statbuf; extern int (*__errno_location ()) ;
This is a no-no. You cannot use the identifier errno any more in any
declaration after you have included <errno.h>.
Andreas.
--
Andreas Schwab "And now for something
schwab@issan.informatik.uni-dortmund.de completely different"
schwab@gnu.org
More information about the Libc-alpha
mailing list