I am developing an application on redhatLinux8.0, I am getting compilation problem. I have attached the compilation errors file with this (filename:redhat8.0errors).
with the following corrections it works fine.
1. Comment the line number 596 in /usr/include/stdlib.h
/**
extern int atexit (void (*__func) (void)) __THROW;
**/
2. modify the file /usr/X11R6/include/X11/Xlib.h
at line 77 by adding following code it works fine
#ifdef linux
#include <stddef.h>
#else
Note:- The same file if I compile in SuseLinux8.0, it compiles with no-errors.
Can I proceed with above corrections !!,
Please suggest a solution.
Thanks,
Guruhema Prasad N
cc1: warning: changing search order for system directory "/usr/include" cc1: warning: as it has already been specified as a non-system directory In file included from /usr/include/features.h:291, from /usr/include/string.h:26, from ../mydir/myfile1.h from ../mydir/myfile2.h from ../mydir/myfile3.h from myfile4.c:2: /usr/include/sys/cdefs.h:174:1: warning: "__attribute_malloc__" redefined In file included from ../mydir/myfile1.h:10, from ../mydir/myfile2.h:4, from ../mydir/myfile3.h:1, from myfile4.c:2: /usr/include/malloc.h:61:1: warning: this is the location of the previous definition In file included from /usr/include/X11/Intrinsic.h:56, from /usr/include/Xm/Xm.h:56, from ../mydir/myfile1.h:22, from ../mydir/myfile2.h:4, from ../mydir/myfile3.h:1, from myfile4.c:2: /usr/include/X11/Xlib.h:83: conflicting types for `wchar_t' /usr/lib/gcc-lib/i386-redhat-linux/3.2/include/stddef.h:294: previous declaration of `wchar_t' In file included from ../mydir/myfile1.h:40, from ../mydir/myfile2.h:4, from ../mydir/myfile3.h:1, from myfile4.c:2: /usr/include/stdlib.h:596: parse error before numeric constant