Re: gcc compilation problem with -ansi option,

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 defined in 
> "/usr/include/math.h" file. If I remove "-ansi" option, its compiles 
> properly, but I want to use "-ansi" option., I need to add any other 
> options along with "-ansi"
> 
> Problem 2:-
> 
> Similarly, if I use "-ansi" option, I can't access the define "S_IFREG" 
> in file "/usr/include/sys/stat.h".
> 
> Please suggest, what options I have to use along with "-ansi" to resolve 
> above problems.

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





_______________________________________________
Redhat-devel-list mailing list
Redhat-devel-list@redhat.com
https://listman.redhat.com/mailman/listinfo/redhat-devel-list

[Index of Archives]     [Kernel Newbies]     [Red Hat General]     [Fedora]     [Red Hat Install]     [Linux Kernel Development]     [Yosemite News]

  Powered by Linux