Re: [Dev-C++] Cannot compile with DevCPP 4.9.7.3 + GCC 3.2
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Trevor S. G. <Gue...@My...> - 2003-01-26 18:38:04
|
It worked fine, Joan... Could you please shed some light on the logic for the requirement? JM> try including: JM> \include\c++\mingw32 ----- Original Message ----- From: "Trevor S. Guerra" <Gue...@My...> To: <dev...@li...> Sent: Sunday, January 26, 2003 11:18 AM Subject: [Dev-C++] Cannot compile with DevCPP 4.9.7.3 + GCC 3.2 > I was using DevCPP 4.9.6 with GCC 2.9.5 without any problems. Now I've > upgraded to the latest DevCPP 4.9.7.3 with GCC 3.2. When I tried to compile > the simple "Hello World" program (which compiles fine on GCC 2.9.5), it > doesn't and throws up an Error Log. > > I've reproduced the exact program syntax in full as well as the Error Log. > Could somebody help me please? > > I use a P-3, Win98. I've installed DevCPP into c:\apps\langs\devcpp. My > Include Directories are : c:\apps\langs\devcpp\include\c++ and > c:\apps\langs\devcpp\include. > > If it helps, I find the file "iostream.h" in the > c:\apps\langs\devcpp\include\backward folder and another file "iostream" in > the C:\Apps\Langs\DevCPP\include\c++ folder. > > Another thing, I've downloaded the MingW compiler directly from > www.mingw.org and when I compile this very same program, it works without > any hitch! Obviously, I'm missing some settings. > > Kindly help. > > > TIA, > Trevor > > --- Simple Hello World Program --- > #include <iostream> > #include <stdlib.h> > > int main() > { > std::cout << "Hello World!\n\n\n\n"; > system("PAUSE"); > return (0); > } > > --- End of Simple Hello World Program --- > > > > --- Compile Log --- > Compiler: Default compiler > Executing g++.exe... > g++.exe "C:\WINDOWS\Desktop\tsg.cpp" -o > WINDOWS\Desktop\tsg.exe" -I"C:\APPS\LANGS\DEVCPP\include\c++" -I"C:\APP > S\LANGS\DEVCPP\include" -L"C:\APPS\LANGS\DEVCPP\lib" > In file included from C:/WINDOWS/Desktop/tsg.cpp:1: > C:/APPS/LANGS/DEVCPP/include/c++/iostream:44:28: bits/c++config.h: No such > file or directory > In file included from C:/APPS/LANGS/DEVCPP/include/c++/ios:44, > from C:/APPS/LANGS/DEVCPP/include/c++/ostream:45, > from C:/APPS/LANGS/DEVCPP/include/c++/iostream:45, > from C:/WINDOWS/Desktop/tsg.cpp:1: > C:/APPS/LANGS/DEVCPP/include/c++/iosfwd:44:28: bits/c++config.h: No such > file or directory > In file included from C:/APPS/LANGS/DEVCPP/include/c++/iosfwd:45, > > from C:/APPS/LANGS/DEVCPP/include/c++/ios:44, > > from C:/APPS/LANGS/DEVCPP/include/c++/ostream:45, > from C:/APPS/LANGS/DEVCPP/include/c++/iostream:45, > from C:/WINDOWS/Desktop/tsg.cpp:1: > C:/APPS/LANGS/DEVCPP/include/c++/bits/stringfwd.h:44:28: bits/c++config.h: > No such file or directory > In file included from C:/APPS/LANGS/DEVCPP/include/c++/iosfwd:46, > from C:/APPS/LANGS/DEVCPP/include/c++/ios:44, > from C:/APPS/LANGS/DEVCPP/include/c++/ostream:45, > from C:/APPS/LANGS/DEVCPP/include/c++/iostream:45, > > from C:/WINDOWS/Desktop/tsg.cpp:1: > C:/APPS/LANGS/DEVCPP/include/c++/bits/fpos.h:44:24: bits/c++io.h: No such > file or directory > In file included from C:/APPS/LANGS/DEVCPP/include/c++/bits/fpos.h:45, > from C:/APPS/LANGS/DEVCPP/include/c++/iosfwd:46, > from C:/APPS/LANGS/DEVCPP/include/c++/ios:44, > from C:/APPS/LANGS/DEVCPP/include/c++/ostream:45, > from C:/APPS/LANGS/DEVCPP/include/c++/iostream:45, > from C:/WINDOWS/Desktop/tsg.cpp:1: > C:/APPS/LANGS/DEVCPP/include/c++/cwchar:49:28: bits/c++config.h: No such > file or directory > In file included from C:/APPS/LANGS/DEVCPP/include/c++/iosfwd:46, > from C:/APPS/LANGS/DEVCPP/include/c++/ios:44, > from C:/APPS/LANGS/DEVCPP/include/c++/ostream:45, > from C:/APPS/LANGS/DEVCPP/include/c++/iostream:45, > from C:/WINDOWS/Desktop/tsg.cpp:1: > C:/APPS/LANGS/DEVCPP/include/c++/bits/fpos.h:60: 'streamoff' is used as a > type, > but is not defined as a type. > C:/APPS/LANGS/DEVCPP/include/c++/bits/fpos.h:74: parse error before `__off' > C:/APPS/LANGS/DEVCPP/include/c++/bits/fpos.h:75: missing ';' before right > brace > C:/APPS/LANGS/DEVCPP/include/c++/bits/fpos.h:77: semicolon missing after > declaration of `std::fpos<_StateT>' > C:/APPS/LANGS/DEVCPP/include/c++/bits/fpos.h: In constructor > `std::fpos<_StateT>::fpos()': > C:/APPS/LANGS/DEVCPP/include/c++/bits/fpos.h:72: class `std::fpos<_StateT>' > does not have any field named `_M_off' > C:/APPS/LANGS/DEVCPP/include/c++/bits/fpos.h: At global scope: > C:/APPS/LANGS/DEVCPP/include/c++/bits/fpos.h:77: parse error before `(' > token > C:/APPS/LANGS/DEVCPP/include/c++/bits/fpos.h:77: ISO C++ forbids defining > types > within return type > C:/APPS/LANGS/DEVCPP/include/c++/bits/fpos.h:77: syntax error before `(' > token > C:/APPS/LANGS/DEVCPP/include/c++/bits/fpos.h:79: syntax error before `&' > token > C:/APPS/LANGS/DEVCPP/include/c++/bits/fpos.h:82: syntax error before `&' > token > C:/APPS/LANGS/DEVCPP/include/c++/bits/fpos.h:86: syntax error before > `operator' > > C:/APPS/LANGS/DEVCPP/include/c++/bits/fpos.h:89: syntax error before `+=' > token > C:/APPS/LANGS/DEVCPP/include/c++/bits/fpos.h:94: syntax error before > `operator' > C:/APPS/LANGS/DEVCPP/include/c++/bits/fpos.h:97: syntax error before `-=' > token > C:/APPS/LANGS/DEVCPP/include/c++/bits/fpos.h:102: parse error before `&' > token > C:/APPS/LANGS/DEVCPP/include/c++/bits/fpos.h:103: non-member function `bool > operator==(...)' cannot have `const' method qualifier > C:/APPS/LANGS/DEVCPP/include/c++/bits/fpos.h:103: `bool operator==(...)' > must > have an argument of class or enumerated type > C:/APPS/LANGS/DEVCPP/include/c++/bits/fpos.h:103: `bool operator==(...)' > must > take exactly two arguments > C:/APPS/LANGS/DEVCPP/include/c++/bits/fpos.h: In function `bool > operator==(...)': > C:/APPS/LANGS/DEVCPP/include/c++/bits/fpos.h:103: `_M_off' undeclared (first > use this function) > C:/APPS/LANGS/DEVCPP/include/c++/bits/fpos.h:103: (Each undeclared > identifier > is reported only once for each function it appears in.) > C:/APPS/LANGS/DEVCPP/include/c++/bits/fpos.h:103: `__pos' undeclared (first > use > this function) > C:/APPS/LANGS/DEVCPP/include/c++/bits/fpos.h: At global scope: > C:/APPS/LANGS/DEVCPP/include/c++/bits/fpos.h:106: parse error before `&' > token > C:/APPS/LANGS/DEVCPP/include/c++/bits/fpos.h:107: non-member function `bool > operator!=(...)' cannot have `const' method qualifier > C:/APPS/LANGS/DEVCPP/include/c++/bits/fpos.h:107: `bool operator!=(...)' > must > have an argument of class or enumerated type > C:/APPS/LANGS/DEVCPP/include/c++/bits/fpos.h:107: `bool operator!=(...)' > must > take exactly two arguments > C:/APPS/LANGS/DEVCPP/include/c++/bits/fpos.h:110: parse error before `)' > token > C:/APPS/LANGS/DEVCPP/include/c++/bits/fpos.h:113: `streamoff' was not > declared > in this scope > C:/APPS/LANGS/DEVCPP/include/c++/bits/fpos.h:113: parse error before `)' > token > C:/APPS/LANGS/DEVCPP/include/c++/bits/fpos.h: In function `void > _M_position(...)': > C:/APPS/LANGS/DEVCPP/include/c++/bits/fpos.h:113: `__off' undeclared (first > use > > this function) > C:/APPS/LANGS/DEVCPP/include/c++/bits/fpos.h: At global scope: > C:/APPS/LANGS/DEVCPP/include/c++/bits/fpos.h:114: parse error before `}' > token > C:/APPS/LANGS/DEVCPP/include/c++/bits/fpos.h:117: syntax error before `;' > token > > In file included from C:/APPS/LANGS/DEVCPP/include/c++/ios:46, > > from C:/APPS/LANGS/DEVCPP/include/c++/ostream:45, > from C:/APPS/LANGS/DEVCPP/include/c++/iostream:45, > from C:/WINDOWS/Desktop/tsg.cpp:1: > C:/APPS/LANGS/DEVCPP/include/c++/bits/char_traits.h:59: parse error before > `;' > token > C:/APPS/LANGS/DEVCPP/include/c++/bits/char_traits.h:60: parse error before > `;' > token > C:/APPS/LANGS/DEVCPP/include/c++/bits/char_traits.h:113: parse error before > `;' > token > > C:/APPS/LANGS/DEVCPP/include/c++/bits/char_traits.h:114: parse error before > `;' > token > > C:/APPS/LANGS/DEVCPP/include/c++/bits/char_traits.h: In static member > function > `static int std::char_traits<char>::eof()': > C:/APPS/LANGS/DEVCPP/include/c++/bits/char_traits.h:168: `EOF' undeclared > (first use this function) > > In file included from C:/APPS/LANGS/DEVCPP/include/c++/ios:47, > > from C:/APPS/LANGS/DEVCPP/include/c++/ostream:45, > from C:/APPS/LANGS/DEVCPP/include/c++/iostream:45, > from C:/WINDOWS/Desktop/tsg.cpp:1: > C:/APPS/LANGS/DEVCPP/include/c++/cstdio:49:28: bits/c++config.h: No such > file or directory > In file included from C:/APPS/LANGS/DEVCPP/include/c++/ios:48, > from C:/APPS/LANGS/DEVCPP/include/c++/ostream:45, > from C:/APPS/LANGS/DEVCPP/include/c++/iostream:45, > from C:/WINDOWS/Desktop/tsg.cpp:1: > C:/APPS/LANGS/DEVCPP/include/c++/bits/localefwd.h:45:28: bits/c++config.h: > No such file or directory > C:/APPS/LANGS/DEVCPP/include/c++/bits/localefwd.h:46:80: bits/c++locale.h: > No such file or directory > In file included from C:/APPS/LANGS/DEVCPP/include/c++/bits/localefwd.h:48, > from C:/APPS/LANGS/DEVCPP/include/c++/ios:48, > from C:/APPS/LANGS/DEVCPP/include/c++/ostream:45, > from C:/APPS/LANGS/DEVCPP/include/c++/iostream:45, > from C:/WINDOWS/Desktop/tsg.cpp:1: > C:/APPS/LANGS/DEVCPP/include/c++/cctype:48:28: bits/c++config.h: No such > file or directory > In file included from C:/APPS/LANGS/DEVCPP/include/c++/bits/localefwd.h:49, > from C:/APPS/LANGS/DEVCPP/include/c++/ios:48, > from C:/APPS/LANGS/DEVCPP/include/c++/ostream:45, > from C:/APPS/LANGS/DEVCPP/include/c++/iostream:45, > from C:/WINDOWS/Desktop/tsg.cpp:1: > C:/APPS/LANGS/DEVCPP/include/c++/string:45:28: bits/c++config.h: No such > file or directory > In file included from C:/APPS/LANGS/DEVCPP/include/c++/memory:54, > from C:/APPS/LANGS/DEVCPP/include/c++/string:48, > from C:/APPS/LANGS/DEVCPP/include/c++/bits/localefwd.h:49, > from C:/APPS/LANGS/DEVCPP/include/c++/ios:48, > from C:/APPS/LANGS/DEVCPP/include/c++/ostream:45, > from C:/APPS/LANGS/DEVCPP/include/c++/iostream:45, > from C:/WINDOWS/Desktop/tsg.cpp:1: > C:/APPS/LANGS/DEVCPP/include/c++/bits/stl_algobase.h:64:28: > bits/c++config.h: No such file or directory > In file included from > C:/APPS/LANGS/DEVCPP/include/c++/bits/stl_algobase.h:67, > from C:/APPS/LANGS/DEVCPP/include/c++/memory:54, > from C:/APPS/LANGS/DEVCPP/include/c++/string:48, > from C:/APPS/LANGS/DEVCPP/include/c++/bits/localefwd.h:49, > from C:/APPS/LANGS/DEVCPP/include/c++/ios:48, > from C:/APPS/LANGS/DEVCPP/include/c++/ostream:45, > from C:/APPS/LANGS/DEVCPP/include/c++/iostream:45, > from C:/WINDOWS/Desktop/tsg.cpp:1: > C:/APPS/LANGS/DEVCPP/include/c++/cstdlib:49:28: bits/c++config.h: No such > file or directory > In file included from > C:/APPS/LANGS/DEVCPP/include/c++/bits/stl_algobase.h:72, > from C:/APPS/LANGS/DEVCPP/include/c++/memory:54, > from C:/APPS/LANGS/DEVCPP/include/c++/string:48, > > from C:/APPS/LANGS/DEVCPP/include/c++/bits/localefwd.h:49, > from C:/APPS/LANGS/DEVCPP/include/c++/ios:48, > from C:/APPS/LANGS/DEVCPP/include/c++/ostream:45, > from C:/APPS/LANGS/DEVCPP/include/c++/iostream:45, > from C:/WINDOWS/Desktop/tsg.cpp:1: > C:/APPS/LANGS/DEVCPP/include/c++/bits/type_traits.h:54:28: bits/c++config.h: > No such file or directory > In file included from > C:/APPS/LANGS/DEVCPP/include/c++/bits/stl_iterator_base_funcs.h:68, > from > C:/APPS/LANGS/DEVCPP/include/c++/bits/stl_algobase.h:74, > from C:/APPS/LANGS/DEVCPP/include/c++/memory:54, > from C:/APPS/LANGS/DEVCPP/include/c++/string:48, > from C:/APPS/LANGS/DEVCPP/include/c++/bits/localefwd.h:49, > from C:/APPS/LANGS/DEVCPP/include/c++/ios:48, > from C:/APPS/LANGS/DEVCPP/include/c++/ostream:45, > from C:/APPS/LANGS/DEVCPP/include/c++/iostream:45, > from C:/WINDOWS/Desktop/tsg.cpp:1: > C:/APPS/LANGS/DEVCPP/include/c++/bits/concept_check.h:40:28: > bits/c++config.h: No such file or directory > In file included from C:/APPS/LANGS/DEVCPP/include/c++/bits/stl_alloc.h:86, > from C:/APPS/LANGS/DEVCPP/include/c++/memory:55, > from C:/APPS/LANGS/DEVCPP/include/c++/string:48, > from C:/APPS/LANGS/DEVCPP/include/c++/bits/localefwd.h:49, > from C:/APPS/LANGS/DEVCPP/include/c++/ios:48, > from C:/APPS/LANGS/DEVCPP/include/c++/ostream:45, > from C:/APPS/LANGS/DEVCPP/include/c++/iostream:45, > from C:/WINDOWS/Desktop/tsg.cpp:1: > C:/APPS/LANGS/DEVCPP/include/c++/bits/stl_threads.h:52:23: bits/gthr.h: No > such file or directory > > In file included from C:/APPS/LANGS/DEVCPP/include/c++/bits/stl_alloc.h:86, > from C:/APPS/LANGS/DEVCPP/include/c++/memory:55, > > from C:/APPS/LANGS/DEVCPP/include/c++/string:48, > from C:/APPS/LANGS/DEVCPP/include/c++/bits/localefwd.h:49, > > from C:/APPS/LANGS/DEVCPP/include/c++/ios:48, > > from C:/APPS/LANGS/DEVCPP/include/c++/ostream:45, > from C:/APPS/LANGS/DEVCPP/include/c++/iostream:45, > from C:/WINDOWS/Desktop/tsg.cpp:1: > C:/APPS/LANGS/DEVCPP/include/c++/bits/stl_threads.h: At global scope: > C:/APPS/LANGS/DEVCPP/include/c++/bits/stl_threads.h:69: '__gthread_mutex_t' > is > used as a type, but is not defined as a type. > C:/APPS/LANGS/DEVCPP/include/c++/bits/stl_threads.h:79:2: #error > __GTHREAD_MUTEX_INIT or __GTHREAD_MUTEX_INIT_FUNCTION should be defined by > gthr.h abstraction layer, report problem to lib...@gc.... > C:/APPS/LANGS/DEVCPP/include/c++/bits/stl_threads.h: In member function > `void > std::_Refcount_Base::_M_incr()': > C:/APPS/LANGS/DEVCPP/include/c++/bits/stl_threads.h:86: `_M_ref_count_lock' > undeclared (first use this function) > C:/APPS/LANGS/DEVCPP/include/c++/bits/stl_threads.h:86: > `__gthread_mutex_lock' > undeclared (first use this function) > C:/APPS/LANGS/DEVCPP/include/c++/bits/stl_threads.h:88: > `__gthread_mutex_unlock > ' undeclared (first use this function) > C:/APPS/LANGS/DEVCPP/include/c++/bits/stl_threads.h: At global scope: > C:/APPS/LANGS/DEVCPP/include/c++/bits/stl_threads.h:158: '__gthread_mutex_t' > is > used as a type, but is not defined as a type. > C:/APPS/LANGS/DEVCPP/include/c++/bits/stl_threads.h: In member function > `void > std::_STL_mutex_lock::_M_acquire_lock()': > C:/APPS/LANGS/DEVCPP/include/c++/bits/stl_threads.h:192: `_M_lock' > undeclared > (first use this function) > > In file included from C:/APPS/LANGS/DEVCPP/include/c++/memory:55, > from C:/APPS/LANGS/DEVCPP/include/c++/string:48, > from C:/APPS/LANGS/DEVCPP/include/c++/bits/localefwd.h:49, > from C:/APPS/LANGS/DEVCPP/include/c++/ios:48, > from C:/APPS/LANGS/DEVCPP/include/c++/ostream:45, > from C:/APPS/LANGS/DEVCPP/include/c++/iostream:45, > from C:/WINDOWS/Desktop/tsg.cpp:1: > C:/APPS/LANGS/DEVCPP/include/c++/bits/stl_alloc.h: At global scope: > C:/APPS/LANGS/DEVCPP/include/c++/bits/stl_alloc.h:575: syntax error before > `;' > token > C:/APPS/LANGS/DEVCPP/include/c++/bits/stl_alloc.h:575: confused by earlier > errors, bailing out > > Execution terminated > --- End of Compile Log --- > ____________________________________________________________________________ __________ > Dieses E-Mail wurde kostenlos ueber http://www.my-mail.ch verschickt. > Guenstig fliegen - keine Gluecksache! 100'000 Flugtarife online - http://www.flugshop.ch > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users --__--__-- _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users End of Dev-cpp-users Digest ______________________________________________________________________________________ Dieses E-Mail wurde kostenlos ueber http://www.my-mail.ch verschickt. Guenstig fliegen - keine Gluecksache! 100'000 Flugtarife online - http://www.flugshop.ch |