From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexandre Oliva To: "Alan Z. Liu" Cc: gcc-help@gcc.gnu.org Subject: Re: compliation error after installing gcc-2.95.2 Date: Fri, 03 Mar 2000 12:19:00 -0000 Message-id: References: <20000302232039.26841.qmail@conrad.ece.uiuc.edu> X-SW-Source: 2000-03/msg00016.html On Mar 3, 2000, "Alan Z. Liu" wrote: > Yes, that's all the error message. Here is again an exact copy of the error I got with a test program: > /usr/include/sys/time.h:337: `extern' can only be specified for objects and functions This line was missing in the previous post. > Actually if I don't have the #include , some programs will > compile fine. Then some programs that use function "atof" will > complain. > Looks like some incompatibility between g++'s stdlib.h and the > system's 'time.h'? Could be, if g++ had its own stdlib.h :-) All it has is a fixed version of HP-UX's stdlib.h. Could it be that something went wrong while fixinc was running, during the build process? Could you please post the preprocessed version of your code snippet, for us to try to figure out what's going wrong with it? See http://www.gnu.org/software/gcc/bugs.html -- Alexandre Oliva http://www.ic.unicamp.br/~oliva/ Enjoy Guaraná Cygnus Solutions, a Red Hat company aoliva@{redhat, cygnus}.com Free Software Developer and Evangelist CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org} Write to mailing lists, not to me From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexandre Oliva To: "Alan Z. Liu" Cc: gcc-help@gcc.gnu.org Subject: Re: compliation error after installing gcc-2.95.2 Date: Sat, 01 Apr 2000 00:00:00 -0000 Message-ID: References: <20000302232039.26841.qmail@conrad.ece.uiuc.edu> X-SW-Source: 2000-q1/msg00326.html Message-ID: <20000401000000.LbSD_dt2Fbb_b0Dxysw2PjnSelQsLrYROzULuhm225w@z> On Mar 3, 2000, "Alan Z. Liu" wrote: > Yes, that's all the error message. Here is again an exact copy of the error I got with a test program: > /usr/include/sys/time.h:337: `extern' can only be specified for objects and functions This line was missing in the previous post. > Actually if I don't have the #include , some programs will > compile fine. Then some programs that use function "atof" will > complain. > Looks like some incompatibility between g++'s stdlib.h and the > system's 'time.h'? Could be, if g++ had its own stdlib.h :-) All it has is a fixed version of HP-UX's stdlib.h. Could it be that something went wrong while fixinc was running, during the build process? Could you please post the preprocessed version of your code snippet, for us to try to figure out what's going wrong with it? See http://www.gnu.org/software/gcc/bugs.html -- Alexandre Oliva http://www.ic.unicamp.br/~oliva/ Enjoy Guaraná Cygnus Solutions, a Red Hat company aoliva@{redhat, cygnus}.com Free Software Developer and Evangelist CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org} Write to mailing lists, not to me