From: SourceForge.net <no...@so...> - 2004-07-14 18:27:59
|
Bugs item #990896, was opened at 2004-07-14 16:26 Message generated for change (Comment added) made by h2o You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=990896&group_id=2435 Category: gcc Group: None Status: Closed Resolution: Works For Me Priority: 5 Submitted By: Holger Hoffstätte (h2o) Assigned to: Danny Smith (dannysmith) Summary: gcc 3.4.1/iostream stumbles over C99 definitions Initial Comment: I just tried the latest gcc 3.4.1 (3.4.0 candiate worked fine for me before) and iostreams seem to be very broken. This works on 3.4.1/Linux without a problem. C:\home\h_hoffstaette\Projects\cpptest>type Main.cpp using namespace std; #include <iostream> int main(int argc, char** argv) { cout << "Hello World!" << endl; } C:\home\h_hoffstaette\Projects\cpptest>g++ Main.cpp In file included from C:/Developer/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.1/../../../../include/c++/3.4.1/mingw32/bits/c++locale.h:43, from C:/Developer/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.1/../../../../include/c++/3.4.1/iosfwd:46, from C:/Developer/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.1/../../../../include/c++/3.4.1/ios:44, from C:/Developer/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.1/../../../../include/c++/3.4.1/ostream:45, from C:/Developer/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.1/../../../../include/c++/3.4.1/iostream:45, from Main.cpp:4: C:/Developer/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.1/../../../../include/c++/3.4.1/cstdio:169: error: `::vfscanf' has not been declared C:/Developer/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.1/../../../../include/c++/3.4.1/cstdio:170: error: `::vscanf' has not been declared C:/Developer/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.1/../../../../include/c++/3.4.1/cstdio:172: error: `::vsscanf' has not been declared C:/Developer/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.1/../../../../include/c++/3.4.1/cstdio:180: error: `__gnu_cxx::vfscanf' has not been declared C:/Developer/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.1/../../../../include/c++/3.4.1/cstdio:181: error: `__gnu_cxx::vscanf' has not been declared C:/Developer/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.1/../../../../include/c++/3.4.1/cstdio:183: error: `__gnu_cxx::vsscanf' has not been declared In file included from C:/Developer/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.1/../../../../include/c++/3.4.1/bits/postypes.h:46, from C:/Developer/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.1/../../../../include/c++/3.4.1/iosfwd:50, from C:/Developer/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.1/../../../../include/c++/3.4.1/ios:44, from C:/Developer/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.1/../../../../include/c++/3.4.1/ostream:45, from C:/Developer/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.1/../../../../include/c++/3.4.1/iostream:45, from Main.cpp:4: C:/Developer/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.1/../../../../include/c++/3.4.1/cwchar:166: error: `::vfwscanf' has not been declared C:/Developer/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.1/../../../../include/c++/3.4.1/cwchar:170: error: `::vswscanf' has not been declared C:/Developer/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.1/../../../../include/c++/3.4.1/cwchar:174: error: `::vwscanf' has not been declared C:\home\h_hoffstaette\Projects\cpptest> ---------------------------------------------------------------------- >Comment By: Holger Hoffstätte (h2o) Date: 2004-07-14 20:27 Message: Logged In: YES user_id=421644 Thanks for looking into it. I already suspected a botched install (not surprising after ~5 updates of gcc in Dev-Cpp) and reinstalling the latest mingw-runtime headers reproducably fixed the problem. I'll creep back into my cave now. A big Thank You for mingw-gcc, btw. :) ---------------------------------------------------------------------- Comment By: Earnie Boyd (earnie) Date: 2004-07-14 18:21 Message: Logged In: YES user_id=15438 Works for me! boyde@WKCH1I7I3 ~ $ cat tmain.cpp using namespace std; #include <iostream> int main(int argc, char** argv) { cout << "Hello World!" << endl; } boyde@WKCH1I7I3 ~ $ g++ -o tmain tmain.cpp boyde@WKCH1I7I3 ~ $ ./tmain Hello World! boyde@WKCH1I7I3 ~ $ gcc -v Reading specs from C:/msys/unified/bin/../lib/gcc/mingw32/3.4.1/specs Configured with: ../gcc/configure --with-gcc --with-gnu-ld --with-gnu-as --host=mingw32 --target=mingw32 --prefix=/mingw --enable-threads --disable-nls --enable-languages=c,c++,f77,ada,objc,java --disable-win32-registry --disable-shared --enable-sjlj-exceptions --enable-libgcj --disable-java-awt --without-x --enable-java-gc=boehm --disable-libgcj-debug --enable-interpreter --enable-hash-synchronization --enable-libstdcxx-debug Thread model: win32 gcc version 3.4.1 (mingw special) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=990896&group_id=2435 |