Re: gcc compilation problem with -ansi option,

2002-12-02 Thread Miloslav Trmac
On Tue, Dec 03, 2002 at 02:23:49AM +0800, John wrote: > On reading the stat.h file, I wonder whether you have any of these > defined? > #if defined __USE_BSD || defined __USE_MISC || defined __USE_XOPEN These are not supposed to be defined by user programs, they are glibc-internal. See /usr/include

Re: gcc compilation problem with -ansi option,

2002-12-02 Thread John
On Mon, 2 Dec 2002, Guruhema Prasad N wrote: > Hi, > > I am using redhatLinux8.0, I am facing the following problems, can you > please help any body. > Problem 1:- > I am using option "gcc -Wuninitialized -O -ansi", but its giving > undeclared variables for the math defines "M_PI" which is de

Re: gcc compilation problem with -ansi option,

2002-12-02 Thread Miloslav Trmac
On Mon, Dec 02, 2002 at 07:49:46PM +0530, Guruhema Prasad N wrote: > Problem 1:- > I am using option "gcc -Wuninitialized -O -ansi", but its giving > undeclared variables for the math defines "M_PI" which is defined in > "/usr/include/math.h" file. If I remove "-ansi" option, its compiles > pro

gcc compilation problem with -ansi option,

2002-12-02 Thread Guruhema Prasad N
Hi, I am using redhatLinux8.0, I am facing the following problems, can you please help any body. Problem 1:- I am using option "gcc -Wuninitialized -O -ansi", but its giving undeclared variables for the math defines "M_PI" which is defined in "/usr/include/math.h" file. If I remove "-ansi" op