dev-c++ fehlende headerdatein!?!
-
moin!
ich hab mich erst kürzlich dazu entschieden c++ zu lernen und gedachte als ide dev-c++ zu nehmen. (Version: 4.9.7.0)Jedoch bekomme ich 70 zusätzliche fehler sobald mein quellcode das enthält:
#include <iostream>
der compiler sagt mir dann:
Compiler: Default compiler
Executing g++.exe...
g++.exe "C:\test.cpp" -o "C:\test.exe" -I"C:\Dev-Cpp\include" -I"C:\Dev-Cpp\include\c++" -I"C:\Dev-Cpp\include" -L"C:\Dev-Cpp\lib"
In file included from C:/test.cpp:1:
C:/Dev-Cpp/include/c++/iostream:44:28: bits/c++config.h: No such file or directory
In file included from C:/Dev-Cpp/include/c++/ios:44,from C:/Dev-Cpp/include/c++/ostream:45,
from C:/Dev-Cpp/include/c++/iostream:45,
from C:/test.cpp:1:
C:/Dev-Cpp/include/c++/iosfwd:44:28: bits/c++config.h: No such file or directory
In file included from C:/Dev-Cpp/include/c++/iosfwd:45,
from C:/Dev-Cpp/include/c++/ios:44,
from C:/Dev-Cpp/include/c++/ostream:45,
from C:/Dev-Cpp/include/c++/iostream:45,
from C:/test.cpp:1:
C:/Dev-Cpp/include/c++/bits/stringfwd.h:44:28: bits/c++config.h: No such file or directory
In file included from C:/Dev-Cpp/include/c++/iosfwd:46,
from C:/Dev-Cpp/include/c++/ios:44,
from C:/Dev-Cpp/include/c++/ostream:45,
from C:/Dev-Cpp/include/c++/iostream:45,
from C:/test.cpp:1:
C:/Dev-Cpp/include/c++/bits/fpos.h:44:24: bits/c++io.h: No such file or directoryIn file included from C:/Dev-Cpp/include/c++/bits/fpos.h:45,
from C:/Dev-Cpp/include/c++/iosfwd:46,
from C:/Dev-Cpp/include/c++/ios:44,
from C:/Dev-Cpp/include/c++/ostream:45,
from C:/Dev-Cpp/include/c++/iostream:45,
from C:/test.cpp:1:
C:/Dev-Cpp/include/c++/cwchar:49:28: bits/c++config.h: No such file or directory
In file included from C:/Dev-Cpp/include/c++/iosfwd:46,
from C:/Dev-Cpp/include/c++/ios:44,
from C:/Dev-Cpp/include/c++/ostream:45,
from C:/Dev-Cpp/include/c++/iostream:45,
from C:/test.cpp:1:
C:/Dev-Cpp/include/c++/bits/fpos.h:60: 'streamoff' is used as a type, but is
not defined as a type.
C:/Dev-Cpp/include/c++/bits/fpos.h:74: parse error before__off' C:/Dev-Cpp/include/c++/bits/fpos.h:75: missing ';' before right brace C:/Dev-Cpp/include/c++/bits/fpos.h:77: semicolon missing after declaration of
std::fpos<_StateT>'
C:/Dev-Cpp/include/c++/bits/fpos.h: In constructor
std::fpos<_StateT>::fpos()': C:/Dev-Cpp/include/c++/bits/fpos.h:72: class
std::fpos<_StateT>' does not have
any field named\_M\_off' C:/Dev-Cpp/include/c++/bits/fpos.h: At global scope: C:/Dev-Cpp/include/c++/bits/fpos.h:77: parse error before
(' token
C:/Dev-Cpp/include/c++/bits/fpos.h:77: ISO C++ forbids defining types within
return type
C:/Dev-Cpp/include/c++/bits/fpos.h:77: syntax error before(' token C:/Dev-Cpp/include/c++/bits/fpos.h:79: syntax error before
&' token
C:/Dev-Cpp/include/c++/bits/fpos.h:82: syntax error before&' token C:/Dev-Cpp/include/c++/bits/fpos.h:86: syntax error before
operator'
C:/Dev-Cpp/include/c++/bits/fpos.h:89: syntax error before+=' token C:/Dev-Cpp/include/c++/bits/fpos.h:94: syntax error before
operator'
C:/Dev-Cpp/include/c++/bits/fpos.h:97: syntax error before-=' token C:/Dev-Cpp/include/c++/bits/fpos.h:102: parse error before
&' token
C:/Dev-Cpp/include/c++/bits/fpos.h:103: non-member functionbool operator==(...)' cannot have
const' method qualifier
C:/Dev-Cpp/include/c++/bits/fpos.h:103:bool operator==(...)' must have an argument of class or enumerated type C:/Dev-Cpp/include/c++/bits/fpos.h:103:
bool operator==(...)' must take
exactly two arguments
C:/Dev-Cpp/include/c++/bits/fpos.h: In functionbool operator==(...)': C:/Dev-Cpp/include/c++/bits/fpos.h:103:
_M_off' undeclared (first use this
function)
C:/Dev-Cpp/include/c++/bits/fpos.h:103: (Each undeclared identifier is reported
only once for each function it appears in.)
C:/Dev-Cpp/include/c++/bits/fpos.h:103:__pos' undeclared (first use this function) C:/Dev-Cpp/include/c++/bits/fpos.h: At global scope: C:/Dev-Cpp/include/c++/bits/fpos.h:106: parse error before
&' token
C:/Dev-Cpp/include/c++/bits/fpos.h:107: non-member functionbool operator!=(...)' cannot have
const' method qualifier
C:/Dev-Cpp/include/c++/bits/fpos.h:107:bool operator!=(...)' must have an argument of class or enumerated type C:/Dev-Cpp/include/c++/bits/fpos.h:107:
bool operator!=(...)' must take
exactly two arguments
C:/Dev-Cpp/include/c++/bits/fpos.h:110: parse error before)' token C:/Dev-Cpp/include/c++/bits/fpos.h:113:
streamoff' was not declared in this
scope
C:/Dev-Cpp/include/c++/bits/fpos.h:113: parse error before)' token C:/Dev-Cpp/include/c++/bits/fpos.h: In function
void _M_position(...)':
C:/Dev-Cpp/include/c++/bits/fpos.h:113:__off' undeclared (first use this function) C:/Dev-Cpp/include/c++/bits/fpos.h: At global scope: C:/Dev-Cpp/include/c++/bits/fpos.h:114: parse error before
}' token
C:/Dev-Cpp/include/c++/bits/fpos.h:117: syntax error before `;' tokenIn file included from C:/Dev-Cpp/include/c++/ios:46,
from C:/Dev-Cpp/include/c++/ostream:45,from C:/Dev-Cpp/include/c++/iostream:45,
from C:/test.cpp:1:
C:/Dev-Cpp/include/c++/bits/char_traits.h:59: parse error before;' token C:/Dev-Cpp/include/c++/bits/char_traits.h:60: parse error before
;' token
C:/Dev-Cpp/include/c++/bits/char_traits.h:113: parse error before;' token C:/Dev-Cpp/include/c++/bits/char_traits.h:114: parse error before
;' token
C:/Dev-Cpp/include/c++/bits/char_traits.h: In static member functionstatic int std::char_traits<char>::eof()': C:/Dev-Cpp/include/c++/bits/char_traits.h:168:
EOF' undeclared (first use this
function)In file included from C:/Dev-Cpp/include/c++/ios:47,
from C:/Dev-Cpp/include/c++/ostream:45,from C:/Dev-Cpp/include/c++/iostream:45,
from C:/test.cpp:1:
C:/Dev-Cpp/include/c++/cstdio:49:28: bits/c++config.h: No such file or directory
In file included from C:/Dev-Cpp/include/c++/ios:48,
from C:/Dev-Cpp/include/c++/ostream:45,
from C:/Dev-Cpp/include/c++/iostream:45,
from C:/test.cpp:1:
C:/Dev-Cpp/include/c++/bits/localefwd.h:45:28: bits/c++config.h: No such file or directoryC:/Dev-Cpp/include/c++/bits/localefwd.h:46:80: bits/c++locale.h: No such file or directory
In file included from C:/Dev-Cpp/include/c++/bits/localefwd.h:48,
from C:/Dev-Cpp/include/c++/ios:48,
from C:/Dev-Cpp/include/c++/ostream:45,
from C:/Dev-Cpp/include/c++/iostream:45,
from C:/test.cpp:1:C:/Dev-Cpp/include/c++/cctype:48:28: bits/c++config.h: No such file or directory
In file included from C:/Dev-Cpp/include/c++/bits/localefwd.h:49,
from C:/Dev-Cpp/include/c++/ios:48,
from C:/Dev-Cpp/include/c++/ostream:45,
from C:/Dev-Cpp/include/c++/iostream:45,from C:/test.cpp:1:
C:/Dev-Cpp/include/c++/string:45:28: bits/c++config.h: No such file or directory
In file included from C:/Dev-Cpp/include/c++/memory:54,
from C:/Dev-Cpp/include/c++/string:48,
from C:/Dev-Cpp/include/c++/bits/localefwd.h:49,
from C:/Dev-Cpp/include/c++/ios:48,
from C:/Dev-Cpp/include/c++/ostream:45,
from C:/Dev-Cpp/include/c++/iostream:45,
from C:/test.cpp:1:
C:/Dev-Cpp/include/c++/bits/stl_algobase.h:64:28: bits/c++config.h: No such file or directory
In file included from C:/Dev-Cpp/include/c++/bits/stl_algobase.h:67,
from C:/Dev-Cpp/include/c++/memory:54,
from C:/Dev-Cpp/include/c++/string:48,
from C:/Dev-Cpp/include/c++/bits/localefwd.h:49,
from C:/Dev-Cpp/include/c++/ios:48,
from C:/Dev-Cpp/include/c++/ostream:45,
from C:/Dev-Cpp/include/c++/iostream:45,
from C:/test.cpp:1:
C:/Dev-Cpp/include/c++/cstdlib:49:28: bits/c++config.h: No such file or directory
In file included from C:/Dev-Cpp/include/c++/bits/stl_algobase.h:72,
from C:/Dev-Cpp/include/c++/memory:54,
from C:/Dev-Cpp/include/c++/string:48,
from C:/Dev-Cpp/include/c++/bits/localefwd.h:49,
from C:/Dev-Cpp/include/c++/ios:48,
from C:/Dev-Cpp/include/c++/ostream:45,
from C:/Dev-Cpp/include/c++/iostream:45,
from C:/test.cpp:1:
C:/Dev-Cpp/include/c++/bits/type_traits.h:54:28: bits/c++config.h: No such file or directory
In file included from C:/Dev-Cpp/include/c++/bits/stl_iterator_base_funcs.h:68,
from C:/Dev-Cpp/include/c++/bits/stl_algobase.h:74,
from C:/Dev-Cpp/include/c++/memory:54,
from C:/Dev-Cpp/include/c++/string:48,
from C:/Dev-Cpp/include/c++/bits/localefwd.h:49,
from C:/Dev-Cpp/include/c++/ios:48,
from C:/Dev-Cpp/include/c++/ostream:45,
from C:/Dev-Cpp/include/c++/iostream:45,
from C:/test.cpp:1:
C:/Dev-Cpp/include/c++/bits/concept_check.h:40:28: bits/c++config.h: No such file or directory
In file included from C:/Dev-Cpp/include/c++/bits/stl_alloc.h:86,
from C:/Dev-Cpp/include/c++/memory:55,
from C:/Dev-Cpp/include/c++/string:48,
from C:/Dev-Cpp/include/c++/bits/localefwd.h:49,
from C:/Dev-Cpp/include/c++/ios:48,
from C:/Dev-Cpp/include/c++/ostream:45,
from C:/Dev-Cpp/include/c++/iostream:45,
from C:/test.cpp:1:
C:/Dev-Cpp/include/c++/bits/stl_threads.h:52:23: bits/gthr.h: No such file or directory
In file included from C:/Dev-Cpp/include/c++/bits/stl_alloc.h:86,
from C:/Dev-Cpp/include/c++/memory:55,
from C:/Dev-Cpp/include/c++/string:48,
from C:/Dev-Cpp/include/c++/bits/localefwd.h:49,
from C:/Dev-Cpp/include/c++/ios:48,from C:/Dev-Cpp/include/c++/ostream:45,
from C:/Dev-Cpp/include/c++/iostream:45,
from C:/test.cpp:1:
C:/Dev-Cpp/include/c++/bits/stl_threads.h: At global scope:
C:/Dev-Cpp/include/c++/bits/stl_threads.h:69: '__gthread_mutex_t' is used as a
type, but is not defined as a type.
C:/Dev-Cpp/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 libstdc++@gcc.gnu.org.
C:/Dev-Cpp/include/c++/bits/stl_threads.h: In member functionvoid std::\_Refcount\_Base::\_M\_incr()': C:/Dev-Cpp/include/c++/bits/stl\_threads.h:86:
_M_ref_count_lock' undeclared
(first use this function)
C:/Dev-Cpp/include/c++/bits/stl_threads.h:86:\_\_gthread\_mutex\_lock' undeclared (first use this function) C:/Dev-Cpp/include/c++/bits/stl\_threads.h:88:
__gthread_mutex_unlock'
undeclared (first use this function)
C:/Dev-Cpp/include/c++/bits/stl_threads.h: At global scope:
C:/Dev-Cpp/include/c++/bits/stl_threads.h:158: '__gthread_mutex_t' is used as atype, but is not defined as a type.
C:/Dev-Cpp/include/c++/bits/stl_threads.h: In member functionvoid std::\_STL\_mutex\_lock::\_M\_acquire\_lock()': C:/Dev-Cpp/include/c++/bits/stl\_threads.h:192:
_M_lock' undeclared (first use
this function)In file included from C:/Dev-Cpp/include/c++/memory:55,
from C:/Dev-Cpp/include/c++/string:48,
from C:/Dev-Cpp/include/c++/bits/localefwd.h:49,
from C:/Dev-Cpp/include/c++/ios:48,
from C:/Dev-Cpp/include/c++/ostream:45,
from C:/Dev-Cpp/include/c++/iostream:45,from C:/test.cpp:1:
C:/Dev-Cpp/include/c++/bits/stl_alloc.h: At global scope:
C:/Dev-Cpp/include/c++/bits/stl_alloc.h:575: syntax error before `;' token
C:/Dev-Cpp/include/c++/bits/stl_alloc.h:575: confused by earlier errors, bailing outExecution terminated
Was soll das? und was kann ich nun tun?
thx 4 support gruff
-
Kopiere die Dateien in
\Dev-Cpp\include\c++\mingw32\bits
nach
\Dev-Cpp\include\c++\bits
-
versuchs mal mit:
#include <iostream.h>
wenn man das .h vergisst klappts nicht, ich weiss nicht, ob du das nur in deinem Post vergessen hast, oder ob u das auch so im Source-Code hast
cu,
MasterDeath
-
thx MFK! jetzt gehts prima!
aber woher wustest du das? bzw wie/wo bekomme ich solche dinge selbst raus ohne gleich das bord mit meinen newbeefragen zu belasten?@MasterDeath
mmm, ich dachte das ".h" irgendwie ein veralteter standard ist. und es funzt auf jeden fall auch(bzw. nur?) ohne ".h".
aber so genau weiß ich das auch nicht! wie gesagt bin ein newbee.thx gruff
-
Original erstellt von gruffudd:
**mmm, ich dachte das ".h" irgendwie ein veralteter standard ist. und es funzt auf jeden fall auch(bzw. nur?) ohne ".h".
**jep, mit .h ists falsch
-
@gruffudd das is ganz einfach wie er es und auch ich es herausgefunden habe
den der compiler hat doch bemeckert das er die datei iostream net finden kann oder ?
Da hätte dir doch zumindestens in den sinn kommen können, ob es überhaupt diese datei im order wo Dev-c++ installiert ist oder in einem unterverzeichniss davon vorhanden ist.
Um das herauszufinden hättest du nur die suchfunktion bemühen müssen
Der Hauptgrund wiso die datei am anfang woanders liegt ist der das seit der neusten Dev-c++ version möglich ist auf einfache weise die compiler version und art zu ändern.
gruß
firefly
-
Original erstellt von Shade Of Mine:
**[quote]Original erstellt von gruffudd:
[qb]mmm, ich dachte das ".h" irgendwie ein veralteter standard ist. und es funzt auf jeden fall auch(bzw. nur?) ohne ".h".
**jep, mit .h ists falsch[/QB][/QUOTE]
komisch, bei mir funzt das nur mit .h
-
äh?
Ich muss immer .h benutzen für Header!!!(Dev-C++ 4.0,Visual C++6.0)
MFG
LordHoto
-
hmm haste bei vc++6 überhaupt schonmal ein servicepack installiert ??
denn da ist die neuen header dateien ohne .h dabei
Und ähnliches gilt bestimmt auch für Dev-c++.
Da haste wohl noch nen älteren compiler drinn der die neuen header noch net besitzt.[ Dieser Beitrag wurde am 03.03.2003 um 18:03 Uhr von firefly editiert. ]
-
also mit .h ist es besser da weiß man noch was es ist!
man kann ja auch andere Dateien einbinden!
-
Ich persönlich gehe auf das Help-Forum von DevC++, da gibts viele interessante Threads.