gcc-3.3 on sh4 can't compile a trivial c++ program without -D_ISOC9X_SOURCE

Dan Kegel dank@kegel.com
Thu May 29 05:16:00 GMT 2003


I got gcc-3.3 + glibc-2.2.5 to build (yay!), but compiling a trivial c++ program fails with
   $PREFIX/include/c++/3.3/cstdio:168: error: `vfscanf' not declared

Turns out this was reported once before in gcc-3.0; see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3774
which says
  This problem can be avoided by adding -D_ISOC9X_SOURCE to the flags passed to
  g++. If _ISOC9X_SOURCE is not defined, required portions of some header files
  are omitted.
Sure enough, defining that flag lets me compile programs.

Anyone run into this?

Sorry for spamming the list with soooo many problems (some of them lame).
To make it up, I'll try to post my update of Bill's scripts tonight.
- Dan

-- 
Dan Kegel
http://www.kegel.com
http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=78045


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com



More information about the crossgcc mailing list