Sign in to follow this  
Pharaoh12

Problem with compiler [solved]

Recommended Posts

Pharaoh12    100
My compiler was originally Dev-C++ v4.8 I think.But I just downloaded 4.9.9.2 and after installation and everything I tried a basic "Hello World" program and it wont compile? There was never a problem before? Here is the code that I put: #include <iostream> #include <string> using namespace std; int main() { cout << "Hello World!" << endl; system("pause"); return 0; } Whats the problem? This would have worked with my older version? The errors say something like: 51 C:\Dev-Cpp\include\c++\bits\basic_ios.h:41, from C:\Dev- Cpp\include\c++\ios In file included from C:/Dev-Cpp/include/c++/bits/basic_ios.h:41, from C:/Dev-Cpp/include/c++/ios or 45 C:\Dev-Cpp\include\c++\ios:51, from C:\Dev-Cpp\include\c++\ostream from C:/Dev-Cpp/include/c++/ios:51, from C:/Dev-Cpp/include/c++/ostream [Edited by - Pharaoh12 on March 26, 2006 6:55:33 PM]

Share this post


Link to post
Share on other sites
Roboguy    794
Could you give the complete error messages (the information you gave at the end of your posts are actually just parts of error messages)?

Share this post


Link to post
Share on other sites
Kalazart    148
Dev isn't a compiler. It's an IDE that uses a gcc compiler. Originally, it comes with MinGW.

Post the compiler error, so we can know what to look for. And try not to use system("PAUSE"), since it works on windows only.

Share this post


Link to post
Share on other sites
Pharaoh12    100
There are too many errors, thats why I only put in two.I think it has something to do with iostream but here are the errors anyway:

[source\]

g++.exe "C:\Documents and Settings\The Ninja\Desktop\Untitled1.cpp" -o "C:\Documents and Settings\The Ninja\Desktop\Untitled1.exe" -g3 -I"C:\Dev-Cpp\include\c++" -I"C:\Dev-Cpp\include\c++\mingw32" -I"C:\Dev-Cpp\include\c++\backward" -I"C:\Dev-Cpp\include" -L"C:\Dev-Cpp\lib" -g3
In file included from C:/Dev-Cpp/include/c++/bits/basic_ios.h:41,
from C:/Dev-Cpp/include/c++/ios:51,
from C:/Dev-Cpp/include/c++/ostream:45,
from C:/Dev-Cpp/include/c++/iostream:45,
from C:\Documents and Settings\The Ninja\Desktop\Untitled1.cpp:1:
C:/Dev-Cpp/include/c++/bits/locale_facets.h: In constructor `std::numpunct_byname<_CharT>::numpunct_byname(const char*, size_t)':
C:/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
C:/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)
C:/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
C:/Dev-Cpp/include/c++/bits/locale_facets.h: In destructor `virtual std::numpunct_byname<_CharT>::~numpunct_byname()':
C:/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

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

C:/Dev-Cpp/include/c++/bits/locale_facets.h: In constructor `std::moneypunct_byname<_CharT, _Intl>::moneypunct_byname(const char*, size_t)':
C:/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
C:/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
C:/Dev-Cpp/include/c++/bits/locale_facets.h: In destructor `virtual std::moneypunct_byname<_CharT, _Intl>::~moneypunct_byname()':
C:/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 C:/Dev-Cpp/include/c++/bits/basic_ios.h:41,
from C:/Dev-Cpp/include/c++/ios:51,
from C:/Dev-Cpp/include/c++/ostream:45,
from C:/Dev-Cpp/include/c++/iostream:45,
from C:\Documents and Settings\The Ninja\Desktop\Untitled1.cpp:1:
C:/Dev-Cpp/include/c++/bits/locale_facets.h: In constructor `std::messages_byname<_CharT>::messages_byname(const char*, size_t)':
C:/Dev-Cpp/include/c++/bits/locale_facets.h:1756: error: `_M_name_messages' undeclared (first use this function)
C:/Dev-Cpp/include/c++/bits/locale_facets.h:1757: error: `_M_c_locale_messages' undeclared (first use this function)
C:/Dev-Cpp/include/c++/bits/locale_facets.h:1757: error: `_S_c_locale' undeclared (first use this function)
C:/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
C:/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 C:/Dev-Cpp/include/c++/limits:48,
from C:/Dev-Cpp/include/c++/bits/locale_facets.tcc:43,
from C:/Dev-Cpp/include/c++/locale:46,
from C:/Dev-Cpp/include/c++/bits/ostream.tcc:37,
from C:/Dev-Cpp/include/c++/ostream:275,
from C:/Dev-Cpp/include/c++/iostream:45,
from C:\Documents and Settings\The Ninja\Desktop\Untitled1.cpp:1:
C:/Dev-Cpp/include/c++/mingw32/bits/cpu_limits.h: At global scope:
C:/Dev-Cpp/include/c++/mingw32/bits/cpu_limits.h:82: error: expected init-declarator before "_iec559_consts"
C:/Dev-Cpp/include/c++/mingw32/bits/cpu_limits.h:82: error: expected `;' before "_iec559_consts"
C:/Dev-Cpp/include/c++/mingw32/bits/cpu_limits.h:86: error: expected init-declarator before "_iec559_consts"
C:/Dev-Cpp/include/c++/mingw32/bits/cpu_limits.h:86: error: expected `;' before "_iec559_consts"
C:/Dev-Cpp/include/c++/mingw32/bits/cpu_limits.h:90: error: expected init-declarator before "_iec559_consts"
C:/Dev-Cpp/include/c++/mingw32/bits/cpu_limits.h:90: error: expected `;' before "_iec559_consts"
C:/Dev-Cpp/include/c++/mingw32/bits/cpu_limits.h:94: error: expected init-declarator before "_iec559_consts"
C:/Dev-Cpp/include/c++/mingw32/bits/cpu_limits.h:94: error: expected `;' before "_iec559_consts"
C:/Dev-Cpp/include/c++/mingw32/bits/cpu_limits.h:99: error: expected init-declarator before "_iec559_consts"
C:/Dev-Cpp/include/c++/mingw32/bits/cpu_limits.h:99: error: expected `;' before "_iec559_consts"
C:/Dev-Cpp/include/c++/mingw32/bits/cpu_limits.h:103: error: expected init-declarator before "_iec559_consts"
C:/Dev-Cpp/include/c++/mingw32/bits/cpu_limits.h:103: error: expected `;' before "_iec559_consts"
C:/Dev-Cpp/include/c++/mingw32/bits/cpu_limits.h:107: error: expected init-declarator before "_iec559_consts"
C:/Dev-Cpp/include/c++/mingw32/bits/cpu_limits.h:107: error: expected `;' before "_iec559_consts"

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

In file included from C:/Dev-Cpp/include/c++/locale:46,
from C:/Dev-Cpp/include/c++/bits/ostream.tcc:37,
from C:/Dev-Cpp/include/c++/ostream:275,
from C:/Dev-Cpp/include/c++/iostream:45,
from C:\Documents and Settings\The Ninja\Desktop\Untitled1.cpp:1:
C:/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':
C:/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

C:/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':
C:/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

C:/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':
C:/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

C:/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':
C:/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

C:/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':
C:/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 C:/Dev-Cpp/include/c++/ostream:275,
from C:/Dev-Cpp/include/c++/iostream:45,
from C:\Documents and Settings\The Ninja\Desktop\Untitled1.cpp:1:
C:/Dev-Cpp/include/c++/bits/ostream.tcc: In member function `std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(bool)':
C:/Dev-Cpp/include/c++/bits/ostream.tcc:152: error: `_M_fnumput' undeclared (first use this function)
C:/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

C:/Dev-Cpp/include/c++/bits/ostream.tcc: In member function `std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(long int)':
C:/Dev-Cpp/include/c++/bits/ostream.tcc:179: error: `_M_fnumput' undeclared (first use this function)
C:/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
C:/Dev-Cpp/include/c++/bits/ostream.tcc: In member function `std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(long unsigned int)':
C:/Dev-Cpp/include/c++/bits/ostream.tcc:214: error: `_M_fnumput' undeclared (first use this function)
C:/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
C:/Dev-Cpp/include/c++/bits/ostream.tcc: In member function `std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(long long int)':
C:/Dev-Cpp/include/c++/bits/ostream.tcc:242: error: `_M_fnumput' undeclared (first use this function)
C:/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

C:/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)':
C:/Dev-Cpp/include/c++/bits/ostream.tcc:278: error: `_M_fnumput' undeclared (first use this function)
C:/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

C:/Dev-Cpp/include/c++/bits/ostream.tcc: In member function `std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(double)':
C:/Dev-Cpp/include/c++/bits/ostream.tcc:304: error: `_M_fnumput' undeclared (first use this function)
C:/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

C:/Dev-Cpp/include/c++/bits/ostream.tcc: In member function `std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(long double)':
C:/Dev-Cpp/include/c++/bits/ostream.tcc:329: error: `_M_fnumput' undeclared (first use this function)
C:/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
C:/Dev-Cpp/include/c++/bits/ostream.tcc: In member function `std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(const void*)':
C:/Dev-Cpp/include/c++/bits/ostream.tcc:354: error: `_M_fnumput' undeclared (first use this function)
C:/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
C:/Dev-Cpp/include/c++/bits/ostream.tcc: In member function `std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::put(_CharT)':

C:/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 C:/Dev-Cpp/include/c++/istream:297,
from C:/Dev-Cpp/include/c++/iostream:46,
from C:\Documents and Settings\The Ninja\Desktop\Untitled1.cpp:1:
C:/Dev-Cpp/include/c++/bits/istream.tcc: In member function `std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(bool&)':
C:/Dev-Cpp/include/c++/bits/istream.tcc:117: error: `_M_fnumget' undeclared (first use this function)
C:/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

C:/Dev-Cpp/include/c++/bits/istream.tcc: In member function `std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(short int&)':
C:/Dev-Cpp/include/c++/bits/istream.tcc:145: error: `_M_fnumget' undeclared (first use this function)
C:/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
C:/Dev-Cpp/include/c++/bits/istream.tcc: In member function `std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(short unsigned int&)':
C:/Dev-Cpp/include/c++/bits/istream.tcc:181: error: `_M_fnumget' undeclared (first use this function)
C:/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
C:/Dev-Cpp/include/c++/bits/istream.tcc: In member function `std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(int&)':
C:/Dev-Cpp/include/c++/bits/istream.tcc:209: error: `_M_fnumget' undeclared (first use this function)
C:/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

C:/Dev-Cpp/include/c++/bits/istream.tcc: In member function `std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(unsigned int&)':
C:/Dev-Cpp/include/c++/bits/istream.tcc:245: error: `_M_fnumget' undeclared (first use this function)
C:/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

C:/Dev-Cpp/include/c++/bits/istream.tcc: In member function `std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(long int&)':

C:/Dev-Cpp/include/c++/bits/istream.tcc:272: error: `_M_fnumget' undeclared (first use this function)
C:/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
C:/Dev-Cpp/include/c++/bits/istream.tcc: In member function `std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(long unsigned int&)':
C:/Dev-Cpp/include/c++/bits/istream.tcc:299: error: `_M_fnumget' undeclared (first use this function)
C:/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
C:/Dev-Cpp/include/c++/bits/istream.tcc: In member function `std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(long long int&)':
C:/Dev-Cpp/include/c++/bits/istream.tcc:327: error: `_M_fnumget' undeclared (first use this function)
C:/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

C:/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&)':
C:/Dev-Cpp/include/c++/bits/istream.tcc:354: error: `_M_fnumget' undeclared (first use this function)
C:/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
C:/Dev-Cpp/include/c++/bits/istream.tcc: In member function `std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(float&)':
C:/Dev-Cpp/include/c++/bits/istream.tcc:382: error: `_M_fnumget' undeclared (first use this function)
C:/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
C:/Dev-Cpp/include/c++/bits/istream.tcc: In member function `std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(double&)':
C:/Dev-Cpp/include/c++/bits/istream.tcc:409: error: `_M_fnumget' undeclared (first use this function)
C:/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
C:/Dev-Cpp/include/c++/bits/istream.tcc: In member function `std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(long double&)':
C:/Dev-Cpp/include/c++/bits/istream.tcc:436: error: `_M_fnumget' undeclared (first use this function)
C:/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
C:/Dev-Cpp/include/c++/bits/istream.tcc: In member function `std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(void*&)':
C:/Dev-Cpp/include/c++/bits/istream.tcc:463: error: `_M_fnumget' undeclared (first use this function)
C:/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

Execution terminated


Share this post


Link to post
Share on other sites
ksintath    102
You have to write


#include <iostream>
#include <string>

using namespace std;
int main()
{
std::cout << "Hello World!" << endl;

system("pause");
return 0;
}



Share this post


Link to post
Share on other sites
Roboguy    794
Quote:
Original post by ksintath
You have to write

*** Source Snippet Removed ***


No, the using namespace std brings everything from the std namespace into the global namespace.

Share this post


Link to post
Share on other sites
ksintath    102
Quote:
Original post by Roboguy
Quote:
Original post by ksintath
You have to write

*** Source Snippet Removed ***


No, the using namespace std brings everything from the std namespace into the global namespace.



Opppps My mistake... i missed that line.Maybe it is for my coding style.I always code like this


#include<iostream>
using namespace std;
#include<string>






Share this post


Link to post
Share on other sites
Drew_Benton    1861
Quote:
Original post by Pharaoh12
So, what can I do? Should I just install my older version again?


Did you uninstall the old Dev-Cpp completelty and delete its folder before installing the new one? If you did not completely remove it, then there are chances that files are overlapping and are messing up this simple example. If you did completely remove it, then beats me, I've always seen upgrades to 4.9.9.2 fix problems, not cause them [wink] So, I'd say uninstall this one, delete everything, then reinstall again (make sure not to use: this version) Good luck!

Share this post


Link to post
Share on other sites
Pharaoh12    100
Thank You very much Drew, it turns out I didnt completely delete all my old Dev-C++ files before installing the new one.Iostream works now and everything is back to normal.

Share this post


Link to post
Share on other sites
Bregma    9202
For future reference, the problem was your compiler was picking up an older version of the standard library header files. The newer version of the compiler is more standards-conforming and rejects the invalid use of dependant names. The standard library had been tweaked to match.

Your solution was the correct one.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this