ein anspruchsvoller "hallo Welt"-Fehler

hulkhagen
Hallo Welt.

Dies ist eins der am meisten programmierten Programme. Ich selbst programmiere nun schon seit etwas längerer Zeit C++ und bis jetzt hat dieses Programm immer geklappt. Bisher arbeitete ich jedoch auf Linux. Nun bin versuche ich auf Windows (XP, SP2) den gleichen Code auszuführen und benutze dafür Dev-C++ (4.9.9.2).


Mein Code:

#include <iostream>
using namespace std;

int main() {
cout << "Hallo, Welt!"<<endl;
return 0; }


Sieht eigentlich ganz korrekt aus. Aber iostream verursacht eine Unmenge an Fehlern, die ich nicht deuten kann. Wenn ich #include <iostream> auskommentiere, bleibt der Fehler:

`cout' undeclared (first use this function)

übrig.
Mit #include <iostream> ergeben sich jedoch folgende Fehlermeldungen:

Compiler: Default compiler
Führt g++.exe... aus
g++.exe "C:\Dokumente und Einstellungen\Hagen\Eigene Dateien\C\versuch.cpp" -o "C:\Dokumente und Einstellungen\Hagen\Eigene Dateien\C\versuch.exe" -I"E:\Programme\Dev-Cpp\include\c++" -I"E:\Programme\Dev-Cpp\include\c++\mingw32" -I"E:\Programme\Dev-Cpp\include\c++\backward" -I"E:\Programme\Dev-Cpp\include" -L"E:\Programme\Dev-Cpp\lib"
In file included from E:/Programme/Dev-Cpp/include/c++/bits/basic_ios.h:41,
from E:/Programme/Dev-Cpp/include/c++/ios:51,
from E:/Programme/Dev-Cpp/include/c++/ostream:45,
from E:/Programme/Dev-Cpp/include/c++/iostream:45,
from C:\Dokumente und Einstellungen\Hagen\Eigene Dateien\C\versuch.cpp:1:
E:/Programme/Dev-Cpp/include/c++/bits/locale_facets.h: In constructor `std::numpunct_byname<_CharT>::numpunct_byname(const char*, size_t)':
E:/Programme/Dev-Cpp/include/c++/bits/locale_facets.h:564: error: there are no arguments to `_S_create_c_locale' that depend on a template parameter, so a declaration of `_S_create_c_locale' must be available
E:/Programme/Dev-Cpp/include/c++/bits/locale_facets.h:564: error: (if you use `-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
E:/Programme/Dev-Cpp/include/c++/bits/locale_facets.h:565: error: there are no arguments to `_M_initialize_numpunct' that depend on a template parameter, so a declaration of `_M_initialize_numpunct' must be available
E:/Programme/Dev-Cpp/include/c++/bits/locale_facets.h: In destructor `virtual std::numpunct_byname<_CharT>::~numpunct_byname()':
E:/Programme/Dev-Cpp/include/c++/bits/locale_facets.h:571: error: there are no arguments to `_S_destroy_c_locale' that depend on a template parameter, so a declaration of `_S_destroy_c_locale' must be available

E:/Programme/Dev-Cpp/include/c++/bits/locale_facets.h: In constructor `std::collate_byname<_CharT>::collate_byname(const char*, size_t)':
E:/Programme/Dev-Cpp/include/c++/bits/locale_facets.h:928: error: `_M_c_locale_collate' undeclared (first use this function)
E:/Programme/Dev-Cpp/include/c++/bits/locale_facets.h:928: error: (Each undeclared identifier is reported only once for each function it appears in.)

E:/Programme/Dev-Cpp/include/c++/bits/locale_facets.h:928: error: `_S_c_locale' undeclared (first use this function)
E:/Programme/Dev-Cpp/include/c++/bits/locale_facets.h:929: error: there are no arguments to `_S_destroy_c_locale' that depend on a template parameter, so a declaration of `_S_destroy_c_locale' must be available
E:/Programme/Dev-Cpp/include/c++/bits/locale_facets.h:930: error: there are no arguments to `_S_create_c_locale' that depend on a template parameter, so a declaration of `_S_create_c_locale' must be available

E:/Programme/Dev-Cpp/include/c++/bits/locale_facets.h: In constructor `std::moneypunct_byname<_CharT, _Intl>::moneypunct_byname(const char*, size_t)':
E:/Programme/Dev-Cpp/include/c++/bits/locale_facets.h:1520: error: there are no arguments to `_S_create_c_locale' that depend on a template parameter, so a declaration of `_S_create_c_locale' must be available
E:/Programme/Dev-Cpp/include/c++/bits/locale_facets.h:1521: error: there are no arguments to `_M_initialize_moneypunct' that depend on a template parameter, so a declaration of `_M_initialize_moneypunct' must be available
E:/Programme/Dev-Cpp/include/c++/bits/locale_facets.h: In destructor `virtual std::moneypunct_byname<_CharT, _Intl>::~moneypunct_byname()':
E:/Programme/Dev-Cpp/include/c++/bits/locale_facets.h:1527: error: there are no arguments to `_S_destroy_c_locale' that depend on a template parameter, so a declaration of `_S_destroy_c_locale' must be available

In file included from E:/Programme/Dev-Cpp/include/c++/bits/basic_ios.h:41,
from E:/Programme/Dev-Cpp/include/c++/ios:51,
from E:/Programme/Dev-Cpp/include/c++/ostream:45,
from E:/Programme/Dev-Cpp/include/c++/iostream:45,
from C:\Dokumente und Einstellungen\Hagen\Eigene Dateien\C\versuch.cpp:1:
E:/Programme/Dev-Cpp/include/c++/bits/locale_facets.h: In constructor `std::messages_byname<_CharT>::messages_byname(const char*, size_t)':
E:/Programme/Dev-Cpp/include/c++/bits/locale_facets.h:1756: error: `_M_name_messages' undeclared (first use this function)
E:/Programme/Dev-Cpp/include/c++/bits/locale_facets.h:1757: error: `_M_c_locale_messages' undeclared (first use this function)
E:/Programme/Dev-Cpp/include/c++/bits/locale_facets.h:1757: error: `_S_c_locale' undeclared (first use this function)
E:/Programme/Dev-Cpp/include/c++/bits/locale_facets.h:1758: error: there are no arguments to `_S_destroy_c_locale' that depend on a template parameter, so a declaration of `_S_destroy_c_locale' must be available
E:/Programme/Dev-Cpp/include/c++/bits/locale_facets.h:1759: error: there are no arguments to `_S_create_c_locale' that depend on a template parameter, so a declaration of `_S_create_c_locale' must be available

In file included from E:/Programme/Dev-Cpp/include/c++/limits:48,
from E:/Programme/Dev-Cpp/include/c++/bits/locale_facets.tcc:43,
from E:/Programme/Dev-Cpp/include/c++/locale:46,
from E:/Programme/Dev-Cpp/include/c++/bits/ostream.tcc:37,
from E:/Programme/Dev-Cpp/include/c++/ostream:275,
from E:/Programme/Dev-Cpp/include/c++/iostream:45,

from C:\Dokumente und Einstellungen\Hagen\Eigene Dateien\C\versuch.cpp:1:
E:/Programme/Dev-Cpp/include/c++/mingw32/bits/cpu_limits.h: At global scope:
E:/Programme/Dev-Cpp/include/c++/mingw32/bits/cpu_limits.h:82: error: expected init-declarator before "_iec559_consts"
E:/Programme/Dev-Cpp/include/c++/mingw32/bits/cpu_limits.h:82: error: expected `;' before "_iec559_consts"
E:/Programme/Dev-Cpp/include/c++/mingw32/bits/cpu_limits.h:86: error: expected init-declarator before "_iec559_consts"
E:/Programme/Dev-Cpp/include/c++/mingw32/bits/cpu_limits.h:86: error: expected `;' before "_iec559_consts"
E:/Programme/Dev-Cpp/include/c++/mingw32/bits/cpu_limits.h:90: error: expected init-declarator before "_iec559_consts"
E:/Programme/Dev-Cpp/include/c++/mingw32/bits/cpu_limits.h:90: error: expected `;' before "_iec559_consts"
E:/Programme/Dev-Cpp/include/c++/mingw32/bits/cpu_limits.h:94: error: expected init-declarator before "_iec559_consts"
E:/Programme/Dev-Cpp/include/c++/mingw32/bits/cpu_limits.h:94: error: expected `;' before "_iec559_consts"
E:/Programme/Dev-Cpp/include/c++/mingw32/bits/cpu_limits.h:99: error: expected init-declarator before "_iec559_consts"
E:/Programme/Dev-Cpp/include/c++/mingw32/bits/cpu_limits.h:99: error: expected `;' before "_iec559_consts"
E:/Programme/Dev-Cpp/include/c++/mingw32/bits/cpu_limits.h:103: error: expected init-declarator before "_iec559_consts"
E:/Programme/Dev-Cpp/include/c++/mingw32/bits/cpu_limits.h:103: error: expected `;' before "_iec559_consts"
E:/Programme/Dev-Cpp/include/c++/mingw32/bits/cpu_limits.h:107: error: expected init-declarator before "_iec559_consts"
E:/Programme/Dev-Cpp/include/c++/mingw32/bits/cpu_limits.h:107: error: expected `;' before "_iec559_consts"
E:/Programme/Dev-Cpp/include/c++/mingw32/bits/cpu_limits.h:111: error: expected init-declarator before "_iec559_consts"
E:/Programme/Dev-Cpp/include/c++/mingw32/bits/cpu_limits.h:111: error: expected `;' before "_iec559_consts"

E:/Programme/Dev-Cpp/include/c++/mingw32/bits/cpu_limits.h:116: error: expected init-declarator before "_iec559_consts"
E:/Programme/Dev-Cpp/include/c++/mingw32/bits/cpu_limits.h:116: error: expected `;' before "_iec559_consts"
E:/Programme/Dev-Cpp/include/c++/mingw32/bits/cpu_limits.h:120: error: expected init-declarator before "_iec559_consts"
E:/Programme/Dev-Cpp/include/c++/mingw32/bits/cpu_limits.h:120: error: expected `;' before "_iec559_consts"
E:/Programme/Dev-Cpp/include/c++/mingw32/bits/cpu_limits.h:124: error: expected init-declarator before "_iec559_consts"
E:/Programme/Dev-Cpp/include/c++/mingw32/bits/cpu_limits.h:124: error: expected `;' before "_iec559_consts"
E:/Programme/Dev-Cpp/include/c++/mingw32/bits/cpu_limits.h:128: error: expected init-declarator before "_iec559_consts"
E:/Programme/Dev-Cpp/include/c++/mingw32/bits/cpu_limits.h:128: error: expected `;' before "_iec559_consts"

In file included from E:/Programme/Dev-Cpp/include/c++/locale:46,
from E:/Programme/Dev-Cpp/include/c++/bits/ostream.tcc:37,

from E:/Programme/Dev-Cpp/include/c++/ostream:275,
from E:/Programme/Dev-Cpp/include/c++/iostream:45,
from C:\Dokumente und Einstellungen\Hagen\Eigene Dateien\C\versuch.cpp:1:
E:/Programme/Dev-Cpp/include/c++/bits/locale_facets.tcc: In member function `_InIter std::num_get<_CharT, _InIter>::_M_extract_float(_InIter, _InIter, std::ios_base&, std::_Ios_Iostate&, std::string&) const':
E:/Programme/Dev-Cpp/include/c++/bits/locale_facets.tcc:217: error: there are no arguments to `__verify_grouping' that depend on a template parameter, so a declaration of `__verify_grouping' must be available
E:/Programme/Dev-Cpp/include/c++/bits/locale_facets.tcc: In member function `_InIter std::num_get<_CharT, _InIter>::_M_extract_int(_InIter, _InIter, std::ios_base&, std::_Ios_Iostate&, std::string&, int&) const':

E:/Programme/Dev-Cpp/include/c++/bits/locale_facets.tcc:368: error: there are no arguments to `__verify_grouping' that depend on a template parameter, so a declaration of `__verify_grouping' must be available

E:/Programme/Dev-Cpp/include/c++/bits/locale_facets.tcc: In member function `virtual _InIter std::money_get<_CharT, _InIter>::do_get(_InIter, _InIter, bool, std::ios_base&, std::_Ios_Iostate&, long double&) const':
E:/Programme/Dev-Cpp/include/c++/bits/locale_facets.tcc:977: error: there are no arguments to `__convert_to_v' that depend on a template parameter, so a declaration of `__convert_to_v' must be available

E:/Programme/Dev-Cpp/include/c++/bits/locale_facets.tcc: In member function `virtual _InIter std::money_get<_CharT, _InIter>::do_get(_InIter, _InIter, bool, std::ios_base&, std::_Ios_Iostate&, std::basic_string<_CharT, std::char_traits<_CharT>, std::allocator<_CharT> >&) const':
E:/Programme/Dev-Cpp/include/c++/bits/locale_facets.tcc:1181: error: there are no arguments to `__verify_grouping' that depend on a template parameter, so a declaration of `__verify_grouping' must be available

E:/Programme/Dev-Cpp/include/c++/bits/locale_facets.tcc: In member function `virtual _OutIter std::money_put<_CharT, _OutIter>::do_put(_OutIter, bool, std::ios_base&, _CharT, long double) const':
E:/Programme/Dev-Cpp/include/c++/bits/locale_facets.tcc:1228: error: there are no arguments to `__convert_from_v' that depend on a template parameter, so a declaration of `__convert_from_v' must be available

In file included from E:/Programme/Dev-Cpp/include/c++/ostream:275,
from E:/Programme/Dev-Cpp/include/c++/iostream:45,
from C:\Dokumente und Einstellungen\Hagen\Eigene Dateien\C\versuch.cpp:1:
E:/Programme/Dev-Cpp/include/c++/bits/ostream.tcc: In member function `std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(bool)':
E:/Programme/Dev-Cpp/include/c++/bits/ostream.tcc:152: error: `_M_fnumput' undeclared (first use this function)
E:/Programme/Dev-Cpp/include/c++/bits/ostream.tcc:152: error: there are no arguments to `_M_check_facet' that depend on a template parameter, so a declaration of `_M_check_facet' must be available
E:/Programme/Dev-Cpp/include/c++/bits/ostream.tcc: In member function `std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(long int)':
E:/Programme/Dev-Cpp/include/c++/bits/ostream.tcc:179: error: `_M_fnumput' undeclared (first use this function)
E:/Programme/Dev-Cpp/include/c++/bits/ostream.tcc:179: error: there are no arguments to `_M_check_facet' that depend on a template parameter, so a declaration of `_M_check_facet' must be available
E:/Programme/Dev-Cpp/include/c++/bits/ostream.tcc: In member function `std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(long unsigned int)':
E:/Programme/Dev-Cpp/include/c++/bits/ostream.tcc:214: error: `_M_fnumput' undeclared (first use this function)
E:/Programme/Dev-Cpp/include/c++/bits/ostream.tcc:214: error: there are no arguments to `_M_check_facet' that depend on a template parameter, so a declaration of `_M_check_facet' must be available
E:/Programme/Dev-Cpp/include/c++/bits/ostream.tcc: In member function `std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(long long int)':
E:/Programme/Dev-Cpp/include/c++/bits/ostream.tcc:242: error: `_M_fnumput' undeclared (first use this function)
E:/Programme/Dev-Cpp/include/c++/bits/ostream.tcc:242: error: there are no arguments to `_M_check_facet' that depend on a template parameter, so a declaration of `_M_check_facet' must be available

E:/Programme/Dev-Cpp/include/c++/bits/ostream.tcc: In member function `std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(long long unsigned int)':
E:/Programme/Dev-Cpp/include/c++/bits/ostream.tcc:278: error: `_M_fnumput' undeclared (first use this function)
E:/Programme/Dev-Cpp/include/c++/bits/ostream.tcc:278: error: there are no arguments to `_M_check_facet' that depend on a template parameter, so a declaration of `_M_check_facet' must be available
E:/Programme/Dev-Cpp/include/c++/bits/ostream.tcc: In member function `std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(double)':
E:/Programme/Dev-Cpp/include/c++/bits/ostream.tcc:304: error: `_M_fnumput' undeclared (first use this function)
E:/Programme/Dev-Cpp/include/c++/bits/ostream.tcc:304: error: there are no arguments to `_M_check_facet' that depend on a template parameter, so a declaration of `_M_check_facet' must be available
E:/Programme/Dev-Cpp/include/c++/bits/ostream.tcc: In member function `std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(long double)':
E:/Programme/Dev-Cpp/include/c++/bits/ostream.tcc:329: error: `_M_fnumput' undeclared (first use this function)
E:/Programme/Dev-Cpp/include/c++/bits/ostream.tcc:329: error: there are no arguments to `_M_check_facet' that depend on a template parameter, so a declaration of `_M_check_facet' must be available
E:/Programme/Dev-Cpp/include/c++/bits/ostream.tcc: In member function `std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(const void*)':
E:/Programme/Dev-Cpp/include/c++/bits/ostream.tcc:354: error: `_M_fnumput' undeclared (first use this function)
E:/Programme/Dev-Cpp/include/c++/bits/ostream.tcc:354: error: there are no arguments to `_M_check_facet' that depend on a template parameter, so a declaration of `_M_check_facet' must be available

E:/Programme/Dev-Cpp/include/c++/bits/ostream.tcc: In member function `std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::put(_CharT)':

E:/Programme/Dev-Cpp/include/c++/bits/ostream.tcc:377: error: there are no arguments to `rdbuf' that depend on a template parameter, so a declaration of `rdbuf' must be available

In file included from E:/Programme/Dev-Cpp/include/c++/istream:297,
from E:/Programme/Dev-Cpp/include/c++/iostream:46,
from C:\Dokumente und Einstellungen\Hagen\Eigene Dateien\C\versuch.cpp:1:
E:/Programme/Dev-Cpp/include/c++/bits/istream.tcc: In member function `std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(bool&)':
E:/Programme/Dev-Cpp/include/c++/bits/istream.tcc:117: error: `_M_fnumget' undeclared (first use this function)
E:/Programme/Dev-Cpp/include/c++/bits/istream.tcc:117: error: there are no arguments to `_M_check_facet' that depend on a template parameter, so a declaration of `_M_check_facet' must be available
E:/Programme/Dev-Cpp/include/c++/bits/istream.tcc: In member function `std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(short int&)':
E:/Programme/Dev-Cpp/include/c++/bits/istream.tcc:145: error: `_M_fnumget' undeclared (first use this function)
E:/Programme/Dev-Cpp/include/c++/bits/istream.tcc:145: error: there are no arguments to `_M_check_facet' that depend on a template parameter, so a declaration of `_M_check_facet' must be available

E:/Programme/Dev-Cpp/include/c++/bits/istream.tcc: In member function `std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(short unsigned int&)':
E:/Programme/Dev-Cpp/include/c++/bits/istream.tcc:181: error: `_M_fnumget' undeclared (first use this function)
E:/Programme/Dev-Cpp/include/c++/bits/istream.tcc:181: error: there are no arguments to `_M_check_facet' that depend on a template parameter, so a declaration of `_M_check_facet' must be available
E:/Programme/Dev-Cpp/include/c++/bits/istream.tcc: In member function `std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(int&)':

E:/Programme/Dev-Cpp/include/c++/bits/istream.tcc:209: error: `_M_fnumget' undeclared (first use this function)
E:/Programme/Dev-Cpp/include/c++/bits/istream.tcc:209: error: there are no arguments to `_M_check_facet' that depend on a template parameter, so a declaration of `_M_check_facet' must be available

E:/Programme/Dev-Cpp/include/c++/bits/istream.tcc: In member function `std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(unsigned int&)':
E:/Programme/Dev-Cpp/include/c++/bits/istream.tcc:245: error: `_M_fnumget' undeclared (first use this function)
E:/Programme/Dev-Cpp/include/c++/bits/istream.tcc:245: error: there are no arguments to `_M_check_facet' that depend on a template parameter, so a declaration of `_M_check_facet' must be available
E:/Programme/Dev-Cpp/include/c++/bits/istream.tcc: In member function `std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(long int&)':
E:/Programme/Dev-Cpp/include/c++/bits/istream.tcc:272: error: `_M_fnumget' undeclared (first use this function)

E:/Programme/Dev-Cpp/include/c++/bits/istream.tcc:272: error: there are no arguments to `_M_check_facet' that depend on a template parameter, so a declaration of `_M_check_facet' must be available
E:/Programme/Dev-Cpp/include/c++/bits/istream.tcc: In member function `std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(long unsigned int&)':
E:/Programme/Dev-Cpp/include/c++/bits/istream.tcc:299: error: `_M_fnumget' undeclared (first use this function)
E:/Programme/Dev-Cpp/include/c++/bits/istream.tcc:299: error: there are no arguments to `_M_check_facet' that depend on a template parameter, so a declaration of `_M_check_facet' must be available

E:/Programme/Dev-Cpp/include/c++/bits/istream.tcc: In member function `std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(long long int&)':
E:/Programme/Dev-Cpp/include/c++/bits/istream.tcc:327: error: `_M_fnumget' undeclared (first use this function)

E:/Programme/Dev-Cpp/include/c++/bits/istream.tcc:327: error: there are no arguments to `_M_check_facet' that depend on a template parameter, so a declaration of `_M_check_facet' must be available

E:/Programme/Dev-Cpp/include/c++/bits/istream.tcc: In member function `std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(long long unsigned int&)':
E:/Programme/Dev-Cpp/include/c++/bits/istream.tcc:354: error: `_M_fnumget' undeclared (first use this function)
E:/Programme/Dev-Cpp/include/c++/bits/istream.tcc:354: error: there are no arguments to `_M_check_facet' that depend on a template parameter, so a declaration of `_M_check_facet' must be available
E:/Programme/Dev-Cpp/include/c++/bits/istream.tcc: In member function `std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(float&)':
E:/Programme/Dev-Cpp/include/c++/bits/istream.tcc:382: error: `_M_fnumget' undeclared (first use this function)
E:/Programme/Dev-Cpp/include/c++/bits/istream.tcc:382: error: there are no arguments to `_M_check_facet' that depend on a template parameter, so a declaration of `_M_check_facet' must be available
E:/Programme/Dev-Cpp/include/c++/bits/istream.tcc: In member function `std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(double&)':
E:/Programme/Dev-Cpp/include/c++/bits/istream.tcc:409: error: `_M_fnumget' undeclared (first use this function)
E:/Programme/Dev-Cpp/include/c++/bits/istream.tcc:409: error: there are no arguments to `_M_check_facet' that depend on a template parameter, so a declaration of `_M_check_facet' must be available
E:/Programme/Dev-Cpp/include/c++/bits/istream.tcc: In member function `std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(long double&)':
E:/Programme/Dev-Cpp/include/c++/bits/istream.tcc:436: error: `_M_fnumget' undeclared (first use this function)
E:/Programme/Dev-Cpp/include/c++/bits/istream.tcc:436: error: there are no arguments to `_M_check_facet' that depend on a template parameter, so a declaration of `_M_check_facet' must be available

E:/Programme/Dev-Cpp/include/c++/bits/istream.tcc: In member function `std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(void*&)':
E:/Programme/Dev-Cpp/include/c++/bits/istream.tcc:463: error: `_M_fnumget' undeclared (first use this function)
E:/Programme/Dev-Cpp/include/c++/bits/istream.tcc:463: error: there are no arguments to `_M_check_facet' that depend on a template parameter, so a declaration of `_M_check_facet' must be available

Ausführung beendet




Vielleicht von euch jemand eine Idee, was falsch ist und was ich dagegen tun kann.
Danke im Vorraus
Chico
Windows löschen! :scheisspc:
«oMeE»
Zitat:
Original von hulkhagen
Nun bin versuche ich auf Windows (XP, SP2) den gleichen Code auszuführen und benutze dafür Dev-C++ (4.9.9.2).


Mein Code:

#include <iostream>
using namespace std;

int main() {
cout << "Hallo, Welt!"<<endl;
return 0; }


Sieht eigentlich ganz korrekt aus. Aber iostream verursacht eine Unmenge an Fehlern, die ich nicht deuten kann.

Hi smile

Ist soweit auch alles richtig, bei mir läuft das Programm ohne ein Fehler durch Augenzwinkern
Du kannst ja das nochmal versuchen:
code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
#include <iostream>

using namespace std;

int main()
{
    
     cout << "Hallo, Welt!"<<endl;
    
    system("PAUSE");
    return EXIT_SUCCESS;
}


Gruss
«oMeE»
p-Logic
Geht bei mir ohne Probleme. (auch DevC++, WinXP SP1)

Sieht aus, als ob deine iostream hin ist, hast du schonmal versucht es einfach nochmal zu installieren? (Bei Win weiß man nie, ob irgendwas funktioniert Zunge raus )
Am Code liegst nicht

BTW:
Zitat:
Original von «oMeE»
code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
#include <iostream>

using namespace std;

int main()
{
    
     cout << "Hallo, Welt!"<<endl;
    
    system("PAUSE");
    return EXIT_SUCCESS;
}


Der Code unterscheidet sich vom anderem nur darin, dass zum Schluss auf eine Eingabe des Benutzers gewartet wird und das sich nicht gleich wieder schließt.
EXIT_SUCCESS steht für 0 (also für normales Beenden des Programms ohne Fehler).
hulkhagen
Danke erstmal für die Antworten

Ich habe es auch mal mit dem von euch veränderten Code probiert, aber es erscheint die gleiche Fehlermeldungsflut. Demzufolge liegt die Vermutung nahe, dass an meiner Datei "iostream" etwas nicht stimmt.
Wie kann ich das beheben? Reicht es diese Datei zu ersetzen? Oder muss ich alle Dateien ersetzen auf die iostream verweist? Wenn ja, wo krieg ich die her?
«oMeE»
Zitat:
Original von hulkhagen
Wenn ja, wo krieg ich die her?

Schau mal ..// hier/.., hab dort die Datei 'iostream' und 'iostream.h' hochgeladen Augenzwinkern

Die Datei 'iostream' liegt im Verzeichnis -> ...\include\c++\3.4.2\
Die Datei 'iostream.h' liegt im Verzeichnis -> ...\include\c++\3.4.2\backward

Ansonsten, wenn das nicht klappt bleibt dir nur übrig Dev-C++ neu runterladen und installieren.

@p-Logic
Jup, bei mir ist noch die Eingabe des Benutzers erforderlich um das Programm zubeenden,
der Code von hulkhagen lief auch so durch nur halt Programm start - Programm ende.

Gruss
«oMeE»
hulkhagen
Danke für das hochladen eMeE, jedoch sind diese Dateien exakt mit meinen übereinstimmend. Es scheint wohl doch noch an anderen Dateien zu liegen. Ich werde jetzt die ungeliebte Neuinstallation vornehmen.

Danke für die netten Auskünfte.


edit: die Neuinst hat geholfen.