From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brent Phillips To: Alexandre Oliva Cc: gcc-help@gcc.gnu.org Subject: Re: code broken by gcc 3.0 Date: Thu, 16 Aug 2001 22:05:00 -0000 Message-id: <5.1.0.14.2.20010816214424.03b694f0@lyrastudios.com> References: <"Wed,> <15> <2001> <23:41:29> <-0700> <5.1.0.14.2.20010815234027.03b96d60@lyrastudios.com> X-SW-Source: 2001-08/msg00137.html Hi, Looking in stdlib.h, I find: /* Execute the given line as a shell command. */ extern int system (__const char *__command) __THROW; Experimenting with a test program, I found that this error always occurs unless and are both included before . HOWEVER...my app still won't compile, even after adding and before . What's going on here? Sincerely, Brent At 10:15 PM 8/16/2001 -0300, Alexandre Oliva wrote: >On Aug 16, 2001, Brent Phillips wrote: > > > /usr/include/g++-v3/bits/std_cstdlib.h: At global scope: > > /usr/include/g++-v3/bits/std_cstdlib.h:103: `system' not declared > >It looks like a declaration for function system() is missing in the >standard header files of whatever OS you're running, and such a >declaration appears to be necessary for std_cstdlib.h to compile >properly. We have to either fixinc stdlib.h or introduce a configure >test in libstdc++-v3 that detects whether there is a declaration of >::system() in stdlib.h. > >-- >Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/ >Red Hat GCC Developer aoliva@{cygnus.com, redhat.com} >CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org} >Free Software Evangelist *Please* write to mailing lists, not to me