Menu

How do I fix what I think is a compiler error

Charlie
2007-10-31
2012-09-26
  • Charlie

    Charlie - 2007-10-31

    I am using Bloodshed's Dev C++ version 4.9.9.2 on Windows XP Pro, with SP2 and I really like the editor (in fact I have told many friends about it), however when I try to compile, I get a bunch of errors about the libraries that I'm using. I have written a "Hello World" type program to see if it was my coding (my degree is in Mathematics but I'm persuing a graduate degree in CS) or if was indeed a compiler issue. My code looks like this:

    include <stdio.h>

    include <stdlib.h>

    include <fstream.h>

    include <string.h>

    include <conio.h>

    //using namespace std;

    int main()
    {
    printf("hello world" );
    System.pause();
    return 0;
    }

    and my compile log looks like this:

    Compiler: Default compiler
    Compiler: Default compiler
    Executing g++.exe...
    g++.exe "H:\COCS 504\week 4\TestLL.cpp" -o "H:\COCS 504\week 4\TestLL.exe" -I"C:\Dev-Cpp\include\c++" -I"C:\Dev-Cpp\include" -L"C:\Dev-Cpp\lib"
    In file included from C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/backward/fstream.h:31,
    from H:\COCS 504\week 4\TestLL.cpp:3:
    C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.
    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++/istream:44,
                 from C:/Dev-Cpp/include/c++/fstream:45,
                 from C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/backward/fstream.h:32,
                 from H:\COCS 504\week 4\TestLL.cpp:3:
    

    C:/Dev-Cpp/include/c++/bits/fpos.h:60: error: `streamoff' does not name a type

    C:/Dev-Cpp/include/c++/bits/fpos.h:74: error: expected )' before &quot;__off&quot; C:/Dev-Cpp/include/c++/bits/fpos.h:77: error:streamoff' has not been declared
    C:/Dev-Cpp/include/c++/bits/fpos.h:80: error: declaration of operator+=' as non-function C:/Dev-Cpp/include/c++/bits/fpos.h:80: error: expected;' before '(' token
    C:/Dev-Cpp/include/c++/bits/fpos.h:82: error: expected ;' before &quot;fpos&quot; C:/Dev-Cpp/include/c++/bits/fpos.h:83: error: declaration ofoperator-=' as non-function
    C:/Dev-Cpp/include/c++/bits/fpos.h:83: error: expected ;' before '(' token C:/Dev-Cpp/include/c++/bits/fpos.h:85: error: expected;' before "fpos"

    C:/Dev-Cpp/include/c++/bits/fpos.h:86: error: declaration of operator+' as non-function C:/Dev-Cpp/include/c++/bits/fpos.h:86: error: expected;' before '(' token
    C:/Dev-Cpp/include/c++/bits/fpos.h:93: error: expected ;' before &quot;fpos&quot; C:/Dev-Cpp/include/c++/bits/fpos.h:94: error: declaration ofoperator-' as non-function
    C:/Dev-Cpp/include/c++/bits/fpos.h:94: error: expected ;' before '(' token C:/Dev-Cpp/include/c++/bits/fpos.h:101: error: expected;' before "bool"
    C:/Dev-Cpp/include/c++/bits/fpos.h:109: error: streamoff' does not name a type C:/Dev-Cpp/include/c++/bits/fpos.h:113: error: variable or field_M_position' declared void
    C:/Dev-Cpp/include/c++/bits/fpos.h:113: error: expected `;' before '(' token

    C:/Dev-Cpp/include/c++/bits/fpos.h:114: error: expected ;' before '}' token C:/Dev-Cpp/include/c++/bits/fpos.h: In constructorstd::fpos<_StateT>::fpos()':

    C:/Dev-Cpp/include/c++/bits/fpos.h:72: error: class std::fpos&lt;_StateT&gt;' does not have any field named_M_off'
    C:/Dev-Cpp/include/c++/bits/fpos.h:72: error: there are no arguments to streamoff' that depend on a template parameter, so a declaration ofstreamoff' must be available
    C:/Dev-Cpp/include/c++/bits/fpos.h:72: 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/fpos.h: In member functionbool std::fpos<_StateT>::operator==(const std::fpos<_StateT>&) const':
    C:/Dev-Cpp/include/c++/bits/fpos.h:103: error: _M_off' undeclared (first use this function) C:/Dev-Cpp/include/c++/bits/fpos.h:103: error: (Each undeclared identifier is reported only once for each function it appears in.) C:/Dev-Cpp/include/c++/bits/fpos.h: In member functionbool std::fpos<_StateT>::operator!=(const std::fpos<_StateT>&) const':
    C:/Dev-Cpp/include/c++/bits/fpos.h:107: error: `_M_off' undeclared (first use this function)

    In file included from C:/Dev-Cpp/include/c++/ios:46,
    from C:/Dev-Cpp/include/c++/istream:44,

                 from C:/Dev-Cpp/include/c++/fstream:45,
                 from C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/backward/fstream.h:32,
                 from H:\COCS 504\week 4\TestLL.cpp:3:
    

    C:/Dev-Cpp/include/c++/bits/char_traits.h: At global scope:
    C:/Dev-Cpp/include/c++/bits/char_traits.h:60: error: `streamoff' does not name a type

    C:/Dev-Cpp/include/c++/bits/char_traits.h:114: error: `streamoff' does not name a type

    In file included from C:/Dev-Cpp/include/c++/bits/localefwd.h:46,
    from C:/Dev-Cpp/include/c++/ios:48,
    from C:/Dev-Cpp/include/c++/istream:44,
    from C:/Dev-Cpp/include/c++/fstream:45,
    from C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/backward/fstream.h:32,
    from H:\COCS 504\week 4\TestLL.cpp:3:
    C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/mingw32/bits/c++locale.h: In function int std::__convert_from_v(char*, int, const char*, _Tv, int* const&amp;, int)': C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/mingw32/bits/c++locale.h:68: error:snprintf' is not a member of `std'

    In file included from C:/Dev-Cpp/include/c++/string:53,
    from C:/Dev-Cpp/include/c++/bits/localefwd.h:49,
    from C:/Dev-Cpp/include/c++/ios:48,
    from C:/Dev-Cpp/include/c++/istream:44,
    from C:/Dev-Cpp/include/c++/fstream:45,
    from C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/backward/fstream.h:32,
    from H:\COCS 504\week 4\TestLL.cpp:3:
    C:/Dev-Cpp/include/c++/bits/basic_string.h: In member function void std::basic_string&lt;_CharT, _Traits, _Alloc&gt;::_Rep::_M_dispose(const _Alloc&amp;)': C:/Dev-Cpp/include/c++/bits/basic_string.h:186: error: there are no arguments toexchange_and_add' that depend on a template parameter, so a declaration of __exchange_and_add' must be available C:/Dev-Cpp/include/c++/bits/basic_string.h: In member function_CharT* std::basic_string<_CharT, _Traits, _Alloc>::_Rep::_M_refcopy()':
    C:/Dev-Cpp/include/c++/bits/basic_string.h:196: error: there are no arguments to __atomic_add' that depend on a template parameter, so a declaration of
    atomic_add' must be available

    In file included from C:/Dev-Cpp/include/c++/ios:48,
    from C:/Dev-Cpp/include/c++/istream:44,

                 from C:/Dev-Cpp/include/c++/fstream:45,
                 from C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/backward/fstream.h:32,
                 from H:\COCS 504\week 4\TestLL.cpp:3:
    

    C:/Dev-Cpp/include/c++/bits/localefwd.h: In member function void std::locale::_Impl::_M_add_reference()': C:/Dev-Cpp/include/c++/bits/localefwd.h:322: error:atomic_add' undeclared (first use this function)
    C:/Dev-Cpp/include/c++/bits/localefwd.h: In member function void std::locale::_Impl::_M_remove_reference()': C:/Dev-Cpp/include/c++/bits/localefwd.h:327: error:
    exchange_and_add' undeclared (first use this function)
    C:/Dev-Cpp/include/c++/bits/localefwd.h: In member function size_t std::locale::id::_M_id() const': C:/Dev-Cpp/include/c++/bits/localefwd.h:462: error:__exchange_and_add' undeclared (first use this function)

    In file included from C:/Dev-Cpp/include/c++/ios:49,
    from C:/Dev-Cpp/include/c++/istream:44,

                 from C:/Dev-Cpp/include/c++/fstream:45,
                 from C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/backward/fstream.h:32,
                 from H:\COCS 504\week 4\TestLL.cpp:3:
    

    C:/Dev-Cpp/include/c++/bits/ios_base.h: At global scope:

    C:/Dev-Cpp/include/c++/bits/ios_base.h:240: error: streamsize' does not name a type C:/Dev-Cpp/include/c++/bits/ios_base.h:241: error:streamsize' does not name a type

    C:/Dev-Cpp/include/c++/bits/ios_base.h:360: error: streamsize' does not name a type C:/Dev-Cpp/include/c++/bits/ios_base.h:363: error:streamsize' does not name a type
    C:/Dev-Cpp/include/c++/bits/ios_base.h:371: error: streamsize' does not name a type C:/Dev-Cpp/include/c++/bits/ios_base.h:374: error:streamsize' does not name a type

    C:/Dev-Cpp/include/c++/bits/ios_base.h: In member function void std::ios_base::_Callback_list::_M_add_reference()': C:/Dev-Cpp/include/c++/bits/ios_base.h:261: error:atomic_add' undeclared (first use this function)
    C:/Dev-Cpp/include/c++/bits/ios_base.h: In member function int std::ios_base::_Callback_list::_M_remove_reference()': C:/Dev-Cpp/include/c++/bits/ios_base.h:265: error:
    exchange_and_add' undeclared (first use this function)

    In file included from C:/Dev-Cpp/include/c++/ios:50,
    from C:/Dev-Cpp/include/c++/istream:44,

                 from C:/Dev-Cpp/include/c++/fstream:45,
                 from C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/backward/fstream.h:32,
                 from H:\COCS 504\week 4\TestLL.cpp:3:
    

    C:/Dev-Cpp/include/c++/streambuf: At global scope:
    C:/Dev-Cpp/include/c++/streambuf:55: error: expected constructor, destructor, or type conversion before "__copy_streambufs"
    C:/Dev-Cpp/include/c++/streambuf:55: error: expected ;' before &quot;__copy_streambufs&quot; C:/Dev-Cpp/include/c++/streambuf:82: error:streamsize' does not name a type
    C:/Dev-Cpp/include/c++/streambuf:269: error: streamsize' has not been declared C:/Dev-Cpp/include/c++/streambuf:287: error:streamsize' does not name a type
    C:/Dev-Cpp/include/c++/streambuf:329: error: streamsize' does not name a type C:/Dev-Cpp/include/c++/streambuf:344: error:streamsize' does not name a type
    C:/Dev-Cpp/include/c++/streambuf:415: error: streamsize' has not been declared C:/Dev-Cpp/include/c++/streambuf:432: error:streamsize' does not name a type
    C:/Dev-Cpp/include/c++/streambuf:435: error: streamsize' does not name a type C:/Dev-Cpp/include/c++/streambuf:464: error:streamsize' does not name a type

    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++/istream:44,
    from C:/Dev-Cpp/include/c++/fstream:45,
    from C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/backward/fstream.h:32,
    from H:\COCS 504\week 4\TestLL.cpp:3:
    C:/Dev-Cpp/include/c++/bits/locale_facets.h:448: error: `streamsize' has not been declared

    C:/Dev-Cpp/include/c++/bits/locale_facets.h: In constructor std::numpunct_byname&lt;_CharT&gt;::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: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 destructorvirtual 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&lt;_CharT&gt;::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: _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&lt;_CharT, _Intl&gt;::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 destructorvirtual 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/locale_facets.h:1743,
    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++/istream:44,
    from C:/Dev-Cpp/include/c++/fstream:45,
    from C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/backward/fstream.h:32,
    from H:\COCS 504\week 4\TestLL.cpp:3:
    C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/mingw32/bits/messages_members.h: At global scope:
    C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/mingw32/bits/messages_members.h:39: error: redefinition of std::messages&lt;_CharT&gt;::messages(size_t)' C:/Dev-Cpp/include/c++/bits/locale_facets.h:1640: error:std::messages<_CharT>::messages(size_t)' previously declared here
    C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/mingw32/bits/messages_members.h: In constructor std::messages&lt;_CharT&gt;::messages(size_t)': C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/mingw32/bits/messages_members.h:40: error: there are no arguments to_S_get_c_locale' that depend on a template parameter, so a declaration of _S_get_c_locale' must be available C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/mingw32/bits/messages_members.h: At global scope: C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/mingw32/bits/messages_members.h:44: error: redefinition ofstd::messages<_CharT>::messages(int, const char, size_t)'
    C:/Dev-Cpp/include/c++/bits/locale_facets.h:1646: error: `std::messages<_CharT>::messages(int, const char, size_t)' previously declared here

    C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/mingw32/bits/messages_members.h: In constructor std::messages&lt;_CharT&gt;::messages(int*, const char*, size_t)': C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/mingw32/bits/messages_members.h:45: error: there are no arguments to_S_get_c_locale' that depend on a template parameter, so a declaration of `_S_get_c_locale' must be available

    C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/mingw32/bits/messages_members.h: At global scope:
    C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/mingw32/bits/messages_members.h:56: error: redefinition of `std::messages<_CharT>::~messages()'

    C:/Dev-Cpp/include/c++/bits/locale_facets.h:1671: error: `virtual std::messages<_CharT>::~messages()' previously declared here

    C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/mingw32/bits/messages_members.h:77: error: invalid use of undefined type struct std::messages_byname&lt;_CharT&gt;' C:/Dev-Cpp/include/c++/bits/localefwd.h:176: error: declaration ofstruct std::messages_byname<_CharT>'

    C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/mingw32/bits/messages_members.h:77: error: template definition of non-template std::messages_byname&lt;_CharT&gt;::messages_byname(const char*, size_t)' 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++/istream:44, from C:/Dev-Cpp/include/c++/fstream:45, from C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/backward/fstream.h:32, from H:\COCS 504\week 4\TestLL.cpp:3: C:/Dev-Cpp/include/c++/bits/locale_facets.h: In constructorstd::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++/istream:45,
    from C:/Dev-Cpp/include/c++/fstream:45,
    from C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/backward/fstream.h:32,
    from H:\COCS 504\week 4\TestLL.cpp:3:

    C:/Dev-Cpp/include/c++/limits:48:29: bits/cpu_limits.h: No such file or directory
    In file included from C:/Dev-Cpp/include/c++/fstream:45,
    from C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/backward/fstream.h:32,
    from H:\COCS 504\week 4\TestLL.cpp:3:
    C:/Dev-Cpp/include/c++/istream: At global scope:
    C:/Dev-Cpp/include/c++/istream:71: error: `streamsize' does not name a type

    C:/Dev-Cpp/include/c++/istream:147: error: streamsize' does not name a type C:/Dev-Cpp/include/c++/istream:158: error:streamsize' has not been declared
    C:/Dev-Cpp/include/c++/istream:161: error: streamsize' has not been declared C:/Dev-Cpp/include/c++/istream:172: error:streamsize' has not been declared
    C:/Dev-Cpp/include/c++/istream:175: error: streamsize' has not been declared C:/Dev-Cpp/include/c++/istream:179: error: expected;' before '(' token
    C:/Dev-Cpp/include/c++/istream:185: error: streamsize' has not been declared C:/Dev-Cpp/include/c++/istream:187: error:streamsize' does not name a type
    C:/Dev-Cpp/include/c++/istream: In constructor std::basic_istream&lt;_CharT, _Traits&gt;::basic_istream(std::basic_streambuf&lt;_CharT, _Traits&gt;*)': C:/Dev-Cpp/include/c++/istream:79: error:_M_gcount' undeclared (first use this function)
    C:/Dev-Cpp/include/c++/istream:79: error: there are no arguments to streamsize' that depend on a template parameter, so a declaration ofstreamsize' must be available
    C:/Dev-Cpp/include/c++/istream: In destructor virtual std::basic_istream&lt;_CharT, _Traits&gt;::~basic_istream()': C:/Dev-Cpp/include/c++/istream:84: error:_M_gcount' undeclared (first use this function)
    C:/Dev-Cpp/include/c++/istream:84: error: there are no arguments to streamsize' that depend on a template parameter, so a declaration ofstreamsize' must be available

    In file included from C:/Dev-Cpp/include/c++/fstream:46,
    from C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/backward/fstream.h:32,
    from H:\COCS 504\week 4\TestLL.cpp:3:
    C:/Dev-Cpp/include/c++/ostream: At global scope:
    C:/Dev-Cpp/include/c++/ostream:161: error: `streamsize' has not been declared

    In file included from C:/Dev-Cpp/include/c++/locale:46,
    from C:/Dev-Cpp/include/c++/fstream:47,
    from C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/backward/fstream.h:32,
    from H:\COCS 504\week 4\TestLL.cpp:3:
    C:/Dev-Cpp/include/c++/bits/locale_facets.tcc: In member function _InIter std::num_get&lt;_CharT, _InIter&gt;::_M_extract_float(_InIter, _InIter, std::ios_base&amp;, std::_Ios_Iostate&amp;, std::string&amp;) const': C:/Dev-Cpp/include/c++/bits/locale_facets.tcc:217: error: there are no arguments toverify_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 _OutIter std::num_put&lt;_CharT, _OutIter&gt;::_M_convert_float(_OutIter, std::ios_base&amp;, _CharT, char, _ValueT) const': C:/Dev-Cpp/include/c++/bits/locale_facets.tcc:634: error:streamsize' undeclared (first use this function)
    C:/Dev-Cpp/include/c++/bits/locale_facets.tcc:634: error: expected ;' before &quot;__prec&quot; C:/Dev-Cpp/include/c++/bits/locale_facets.tcc:636: error:__prec' undeclared (first use this function)
    C:/Dev-Cpp/include/c++/bits/locale_facets.tcc:636: error: streamsize' has not been declared C:/Dev-Cpp/include/c++/bits/locale_facets.tcc:637: error:streamsize' has not been declared

    C:/Dev-Cpp/include/c++/bits/locale_facets.tcc: In member function `_OutIter std::num_put<_CharT, _OutIter>::_M_widen_int(_OutIter, std::ios_base&, _CharT, char*, int) const':

    C:/Dev-Cpp/include/c++/bits/locale_facets.tcc:807: error: streamsize' undeclared (first use this function) C:/Dev-Cpp/include/c++/bits/locale_facets.tcc:807: error: expected;' before "off"
    C:/Dev-Cpp/include/c++/bits/locale_facets.tcc:811: error: __off' undeclared (first use this function) C:/Dev-Cpp/include/c++/bits/locale_facets.tcc: In member function_OutIter std::num_put<_CharT, _OutIter>::_M_insert(_OutIter, std::ios_base&, _CharT, const _CharT*, int) const':
    C:/Dev-Cpp/include/c++/bits/locale_facets.tcc:842: error: streamsize' undeclared (first use this function) C:/Dev-Cpp/include/c++/bits/locale_facets.tcc:842: error: expected;' before "
    w"
    C:/Dev-Cpp/include/c++/bits/locale_facets.tcc:844: error: __w' undeclared (first use this function) C:/Dev-Cpp/include/c++/bits/locale_facets.tcc:845: error:streamsize' has not been declared
    C:/Dev-Cpp/include/c++/bits/locale_facets.tcc:853: error: 'class std::ios_base' has no member named 'width'

    C:/Dev-Cpp/include/c++/bits/locale_facets.tcc: In member function virtual _InIter std::money_get&lt;_CharT, _InIter&gt;::do_get(_InIter, _InIter, bool, std::ios_base&amp;, std::_Ios_Iostate&amp;, long double&amp;) const': C:/Dev-Cpp/include/c++/bits/locale_facets.tcc:998: error: there are no arguments toconvert_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&lt;_CharT, _InIter&gt;::do_get(_InIter, _InIter, bool, std::ios_base&amp;, std::_Ios_Iostate&amp;, std::basic_string&lt;_CharT, std::char_traits&lt;_CharT&gt;, std::allocator&lt;_CharT&gt; &gt;&amp;) 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 functionvirtual _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:1263: error: no matching function for call to __convert_from_v(char*&amp;, int, const char[7], long double&amp;, int*&amp;)' C:/Dev-Cpp/include/c++/bits/locale_facets.tcc: In member functionvirtual _OutIter std::money_put<_CharT, _OutIter>::do_put(_OutIter, bool, std::ios_base&, _CharT, const std::basic_string<_CharT, std::char_traits<_CharT>, std::allocator<_CharT> >&) const':
    C:/Dev-Cpp/include/c++/bits/locale_facets.tcc:1282: error: 'class std::ios_base' has no member named 'width'

    C:/Dev-Cpp/include/c++/bits/locale_facets.tcc:1432: error: 'class std::ios_base' has no member named 'width'

    C:/Dev-Cpp/include/c++/bits/locale_facets.tcc: At global scope:
    C:/Dev-Cpp/include/c++/bits/locale_facets.tcc:2068: error: redefinition of template&lt;class _Tv&gt; int std::__convert_from_v(char*, int, const char*, _Tv, int* const&amp;, int)' C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/mingw32/bits/c++locale.h:61: error:template<class _Tv> int std::convert_from_v(char, int, const char, _Tv, int* const&, int)' previously declared here
    C:/Dev-Cpp/include/c++/bits/locale_facets.tcc:2099: error: expected ,' or...' before "
    newlen"
    C:/Dev-Cpp/include/c++/bits/locale_facets.tcc:2107: error: expected ,' or...' before "newlen"
    C:/Dev-Cpp/include/c++/bits/locale_facets.tcc: In static member function static void std::__pad&lt;_CharT, _Traits&gt;::_S_pad(std::ios_base&amp;, _CharT, _CharT*, const _CharT*, int)': C:/Dev-Cpp/include/c++/bits/locale_facets.tcc:2110: error:
    newlen' undeclared (first use this function)
    C:/Dev-Cpp/include/c++/bits/locale_facets.tcc:2110: error: __oldlen' undeclared (first use this function) C:/Dev-Cpp/include/c++/bits/locale_facets.tcc:2127: error:__num' undeclared (first use this function)

    In file included from C:/Dev-Cpp/include/c++/fstream:48,
    from C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/backward/fstream.h:32,
    from H:\COCS 504\week 4\TestLL.cpp:3:
    C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/mingw32/bits/basic_file.h: At global scope:
    C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/mingw32/bits/basic_file.h:89: error: streamsize' does not name a type C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/mingw32/bits/basic_file.h:92: error:streamsize' does not name a type
    C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/mingw32/bits/basic_file.h:96: error: streamsize' does not name a type C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/mingw32/bits/basic_file.h:99: error:streamoff' does not name a type

    C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/mingw32/bits/basic_file.h:105: error: streamsize' does not name a type In file included from C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/backward/fstream.h:32, from H:\COCS 504\week 4\TestLL.cpp:3: C:/Dev-Cpp/include/c++/fstream:126: error:streamsize' does not name a type
    C:/Dev-Cpp/include/c++/fstream:176: error: streamsize' has not been declared C:/Dev-Cpp/include/c++/fstream:176: error:streamsize' has not been declared
    C:/Dev-Cpp/include/c++/fstream:176: error: streamsize' has not been declared C:/Dev-Cpp/include/c++/fstream:179: error:streamsize' has not been declared

    C:/Dev-Cpp/include/c++/fstream:213: error: streamsize' does not name a type C:/Dev-Cpp/include/c++/fstream:234: error:streamsize' does not name a type
    C:/Dev-Cpp/include/c++/fstream: In member function virtual int std::basic_filebuf&lt;_CharT, _Traits&gt;::sync()': C:/Dev-Cpp/include/c++/fstream:192: error:_M_out_cur' undeclared (first use this function)
    C:/Dev-Cpp/include/c++/fstream:192: error: _M_out_beg' undeclared (first use this function) C:/Dev-Cpp/include/c++/fstream:192: error:_M_out_end' undeclared (first use this function)
    C:/Dev-Cpp/include/c++/fstream:202: error: 'class std::__basic_file<char>' has no member named 'seekoff'
    C:/Dev-Cpp/include/c++/fstream: In member function void std::basic_filebuf&lt;_CharT, _Traits&gt;::_M_set_indeterminate()': C:/Dev-Cpp/include/c++/fstream:254: error:_M_mode' undeclared (first use this function)
    C:/Dev-Cpp/include/c++/fstream:255: error: _M_buf' undeclared (first use this function) C:/Dev-Cpp/include/c++/fstream: In member functionvoid std::basic_filebuf<_CharT, _Traits>::_M_set_determinate(typename _Traits::off_type)':
    C:/Dev-Cpp/include/c++/fstream:264: error: _M_mode' undeclared (first use this function) C:/Dev-Cpp/include/c++/fstream:267: error:_M_buf' undeclared (first use this function)
    C:/Dev-Cpp/include/c++/fstream: In member function bool std::basic_filebuf&lt;_CharT, _Traits&gt;::_M_is_indeterminate()': C:/Dev-Cpp/include/c++/fstream:278: error:_M_buf' undeclared (first use this function)
    C:/Dev-Cpp/include/c++/fstream:280: error: _M_mode' undeclared (first use this function) C:/Dev-Cpp/include/c++/fstream:281: error:_M_in_beg' undeclared (first use this function)
    C:/Dev-Cpp/include/c++/fstream:281: error: _M_in_cur' undeclared (first use this function) C:/Dev-Cpp/include/c++/fstream:281: error:_M_in_end' undeclared (first use this function)
    C:/Dev-Cpp/include/c++/fstream:283: error: _M_out_beg' undeclared (first use this function) C:/Dev-Cpp/include/c++/fstream:283: error:_M_out_cur' undeclared (first use this function)

    C:/Dev-Cpp/include/c++/fstream:283: error: _M_out_end' undeclared (first use this function) C:/Dev-Cpp/include/c++/streambuf: At global scope: C:/Dev-Cpp/include/c++/streambuf: In instantiation ofstd::basic_streambuf<char, std::char_traits<char> >':

    C:/Dev-Cpp/include/c++/fstream:55: instantiated from std::basic_filebuf&lt;char, std::char_traits&lt;char&gt; &gt;' C:/Dev-Cpp/include/c++/fstream:291: instantiated from here C:/Dev-Cpp/include/c++/streambuf:69: error: no type namedoff_type' in struct std::char_traits&lt;char&gt;' C:/Dev-Cpp/include/c++/streambuf: In instantiation ofstd::basic_streambuf<char, std::char_traits<char> >':
    C:/Dev-Cpp/include/c++/fstream:55: instantiated from std::basic_filebuf&lt;char, std::char_traits&lt;char&gt; &gt;' C:/Dev-Cpp/include/c++/fstream:291: instantiated from here C:/Dev-Cpp/include/c++/streambuf:187: error: no type namedoff_type' in struct std::char_traits&lt;char&gt;' C:/Dev-Cpp/include/c++/streambuf:204: error: no type namedoff_type' in struct std::char_traits&lt;char&gt;' C:/Dev-Cpp/include/c++/streambuf:224: error: no type namedoff_type' in `struct std::char_traits<char>'

    C:/Dev-Cpp/include/c++/streambuf:275: error: no type named off_type' instruct std::char_traits<char>'
    C:/Dev-Cpp/include/c++/streambuf:421: error: no type named off_type' instruct std::char_traits<char>'

    C:/Dev-Cpp/include/c++/fstream: In instantiation of std::basic_filebuf&lt;char, std::char_traits&lt;char&gt; &gt;': C:/Dev-Cpp/include/c++/fstream:291: instantiated from here C:/Dev-Cpp/include/c++/fstream:62: error: no type namedoff_type' in `struct std::char_traits<char>'

    C:/Dev-Cpp/include/c++/fstream:183: error: no type named off_type' instruct std::char_traits<char>'
    C:/Dev-Cpp/include/c++/fstream:263: error: no type named off_type' instruct std::char_traits<char>'

    C:/Dev-Cpp/include/c++/fstream: In member function void std::basic_fstream&lt;_CharT, _Traits&gt;::open(const char*, std::_Ios_Openmode)': C:/Dev-Cpp/include/c++/fstream:547: error: there are no arguments tosetstate' that depend on a template parameter, so a declaration of setstate' must be available C:/Dev-Cpp/include/c++/fstream: In member functionvoid std::basic_fstream<_CharT, _Traits>::close()':
    C:/Dev-Cpp/include/c++/fstream:555: error: there are no arguments to setstate' that depend on a template parameter, so a declaration ofsetstate' must be available

    H:\COCS 504\week 4\TestLL.cpp: In function int main()': H:\COCS 504\week 4\TestLL.cpp:13: error:System' undeclared (first use this function)

    Execution terminated
    Compilation aborted by user

    This just seems to be a bit more errors than I should get. Any help will be very much appriciated.

    Charlie

     
    • BiT

      BiT - 2007-10-31

      you only need to include

      include <cstdlib>

      include <iostream>

      and it is

      system("pause");

       
    • Charlie

      Charlie - 2007-10-31

      Thanks BiT. When I tried that I went from 188 errors down to 102 :(. I just got confused on the system.pause() bit (Java syntax). The point is that the libraries that I included are needed in the program that I'm trying to write but I can't get the the %*$#ing thing to complie as a result. Please forgive me for the harsh language, but at this point I'm at a loss over what to do. I can take good code (written and will compile on another machine) and it won't compile on this machine.

       
    • BiT

      BiT - 2007-10-31

      Rebuild all then post your compile log.

       
    • BiT

      BiT - 2007-10-31

      are you able to use a template? File>>new>>project>>console app.

      H:\COCS 504\week 4\TestLL.cpp:10: error: `System' undeclared (first use this function)
      system("pause");//no caps on the S

      Remove the spaces in your path
      H:\COCS504\week4\TestLL.cpp

      include <cstdlib>

      include <iostream>

      //using namespace std;

      int main()
      {
      printf("hello world");
      system("pause");
      return 0;
      }

       
    • Charlie

      Charlie - 2007-10-31

      This still didn't work. But my error count is down to 101. I am at a total loss as to what I should do. I still believe that it's a problem in the compiler settings, but I don't know what to change them to.

       
      • Osito

        Osito - 2007-10-31

        Could you post your revised code and new compile log?

         
    • Anonymous

      Anonymous - 2007-10-31

      In 4.9.9.2 the default include path options for a C++ build should look like this:

      -I"C:\Dev-Cpp\lib\gcc\mingw32\3.4.2\include"
      -I"C:\Dev-Cpp\include\c++\3.4.2\mingw32"
      -I"C:\Dev-Cpp\include\c++\3.4.2"
      -I"C:\Dev-Cpp\include"

      but you have just

      -I"C:\Dev-Cpp\include\c++"
      -I"C:\Dev-Cpp\include"

      This is normally a sign that you installed 4.9.9.2 on top of an older version that used a pre 3.x version of GCC. The header files you are consequently including are form an older version of teh compiler. Your best course of action is to delete the entire installation and manually expunge any existing configuration files as detailed in the "PLEASE READ BEFORE POSTING A QUESTION" thread. There you will find lots of other advice about almost all the traps you have fallen into, such as spaces in paths, deprecated header files, posting hundreds of error messages unnecessarily etc.

      You had some incorrect advice earlier. Your code merely needs:

      include <cstdio>

      include <cstdlib>

      or you might use

      include <stdio.h>

      include <stdlib.h>

      Then you could use C compilation instead of C++ (by renaming your file .c) since your code is compilable as C having no C++ specific parts. As C code it would probably build because the paths for the C library headers remained the same. But you really aught to fix your installation nonetheless.

      In future bear in mind that there is no benefit in simply counting the errors and telling us the number! The actual number is entirely irrelevant - it is possible to fix one error only to have the number increase because the compiler gets further in parsing your code. It is also possible for a single error to yield many messages if you confuse the compiler enough. The messages (in fact the whole log) contain information. If you change the code or build settings and the build log changes, you have to repost both the code and the log so that we have half a chance of seeing what you are doing! (And verifying that you have done what was asked). The first part of the log is critical, if it is followed by tens of messages, it is acceptable to truncate it after a few, the later ones are either irrelevant or likely to change when you fix the first ones.

      Clifford

      Clifford

       
    • BiT

      BiT - 2007-10-31

      I just posting the headers that are supplied with the template for a console app. My bad

      //////template from dev/////

      include <cstdlib>

      include <iostream>

      using namespace std;

      int main(int argc, char *argv[])
      {
      system("PAUSE");
      return EXIT_SUCCESS;
      }

       
      • Anonymous

        Anonymous - 2007-10-31

        I would not worry, his installation is screwed in any case. The reason he got fewer errors after your help was merely because be had included fewer pre-3.x C++ headers! Had you got the headers right (and used C .h style), it probably would have compiled and he'd have thought it solved.

        Clifford

         
    • Charlie

      Charlie - 2007-10-31

      Here is my compile log:

      Compiler: Default compiler
      Compiler: Default compiler
      Executing g++.exe...
      g++.exe "H:\COCS 504\week 4\TestLL.cpp" -o "H:\COCS 504\week 4\TestLL.exe" -I"C:\Dev-Cpp\include\c++" -I"C:\Dev-Cpp\include" -L"C:\Dev-Cpp\lib"
      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 H:\COCS 504\week 4\TestLL.cpp:2:
      C:/Dev-Cpp/include/c++/bits/fpos.h:60: error: streamoff' does not name a type C:/Dev-Cpp/include/c++/bits/fpos.h:74: error: expected)' before "__off"
      C:/Dev-Cpp/include/c++/bits/fpos.h:77: error: streamoff' has not been declared C:/Dev-Cpp/include/c++/bits/fpos.h:80: error: declaration ofoperator+=' as non-function
      C:/Dev-Cpp/include/c++/bits/fpos.h:80: error: expected `;' before '(' token

      C:/Dev-Cpp/include/c++/bits/fpos.h:82: error: expected ;' before &quot;fpos&quot; C:/Dev-Cpp/include/c++/bits/fpos.h:83: error: declaration ofoperator-=' as non-function
      C:/Dev-Cpp/include/c++/bits/fpos.h:83: error: expected ;' before '(' token C:/Dev-Cpp/include/c++/bits/fpos.h:85: error: expected;' before "fpos"
      C:/Dev-Cpp/include/c++/bits/fpos.h:86: error: declaration of operator+' as non-function C:/Dev-Cpp/include/c++/bits/fpos.h:86: error: expected;' before '(' token
      C:/Dev-Cpp/include/c++/bits/fpos.h:93: error: expected ;' before &quot;fpos&quot; C:/Dev-Cpp/include/c++/bits/fpos.h:94: error: declaration ofoperator-' as non-function
      C:/Dev-Cpp/include/c++/bits/fpos.h:94: error: expected ;' before '(' token C:/Dev-Cpp/include/c++/bits/fpos.h:101: error: expected;' before "bool"
      C:/Dev-Cpp/include/c++/bits/fpos.h:109: error: `streamoff' does not name a type

      C:/Dev-Cpp/include/c++/bits/fpos.h:113: error: variable or field _M_position' declared void C:/Dev-Cpp/include/c++/bits/fpos.h:113: error: expected;' before '(' token
      C:/Dev-Cpp/include/c++/bits/fpos.h:114: error: expected ;' before '}' token C:/Dev-Cpp/include/c++/bits/fpos.h: In constructorstd::fpos<_StateT>::fpos()':
      C:/Dev-Cpp/include/c++/bits/fpos.h:72: error: class std::fpos&lt;_StateT&gt;' does not have any field named_M_off'
      C:/Dev-Cpp/include/c++/bits/fpos.h:72: error: there are no arguments to streamoff' that depend on a template parameter, so a declaration ofstreamoff' must be available
      C:/Dev-Cpp/include/c++/bits/fpos.h:72: 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/fpos.h: In member functionbool std::fpos<_StateT>::operator==(const std::fpos<_StateT>&) const':
      C:/Dev-Cpp/include/c++/bits/fpos.h:103: error: _M_off' undeclared (first use this function) C:/Dev-Cpp/include/c++/bits/fpos.h:103: error: (Each undeclared identifier is reported only once for each function it appears in.) C:/Dev-Cpp/include/c++/bits/fpos.h: In member functionbool std::fpos<_StateT>::operator!=(const std::fpos<_StateT>&) const':
      C:/Dev-Cpp/include/c++/bits/fpos.h:107: error: `_M_off' undeclared (first use this function)

      In 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 H:\COCS 504\week 4\TestLL.cpp:2:
      

      C:/Dev-Cpp/include/c++/bits/char_traits.h: At global scope:

      C:/Dev-Cpp/include/c++/bits/char_traits.h:60: error: streamoff' does not name a type C:/Dev-Cpp/include/c++/bits/char_traits.h:114: error:streamoff' does not name a type

      In file included from C:/Dev-Cpp/include/c++/bits/localefwd.h:46,
      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 H:\COCS 504\week 4\TestLL.cpp:2:
      C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/mingw32/bits/c++locale.h: In function `int std::__convert_from_v(char, int, const char, _Tv, int* const&, int)':

      C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/mingw32/bits/c++locale.h:68: error: snprintf' is not a member ofstd'

      In file included from C:/Dev-Cpp/include/c++/string:53,
      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 H:\COCS 504\week 4\TestLL.cpp:2:
      C:/Dev-Cpp/include/c++/bits/basic_string.h: In member function void std::basic_string&lt;_CharT, _Traits, _Alloc&gt;::_Rep::_M_dispose(const _Alloc&amp;)': C:/Dev-Cpp/include/c++/bits/basic_string.h:186: error: there are no arguments toexchange_and_add' that depend on a template parameter, so a declaration of __exchange_and_add' must be available C:/Dev-Cpp/include/c++/bits/basic_string.h: In member function_CharT* std::basic_string<_CharT, _Traits, _Alloc>::_Rep::_M_refcopy()':
      C:/Dev-Cpp/include/c++/bits/basic_string.h:196: error: there are no arguments to __atomic_add' that depend on a template parameter, so a declaration of
      atomic_add' must be available

      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 H:\COCS 504\week 4\TestLL.cpp:2:
      

      C:/Dev-Cpp/include/c++/bits/localefwd.h: In member function void std::locale::_Impl::_M_add_reference()': C:/Dev-Cpp/include/c++/bits/localefwd.h:322: error:__atomic_add' undeclared (first use this function)

      C:/Dev-Cpp/include/c++/bits/localefwd.h: In member function void std::locale::_Impl::_M_remove_reference()': C:/Dev-Cpp/include/c++/bits/localefwd.h:327: error:__exchange_and_add' undeclared (first use this function)

      C:/Dev-Cpp/include/c++/bits/localefwd.h: In member function size_t std::locale::id::_M_id() const': C:/Dev-Cpp/include/c++/bits/localefwd.h:462: error:__exchange_and_add' undeclared (first use this function)

      In file included from C:/Dev-Cpp/include/c++/ios:49,
      from C:/Dev-Cpp/include/c++/ostream:45,

                   from C:/Dev-Cpp/include/c++/iostream:45,
                   from H:\COCS 504\week 4\TestLL.cpp:2:
      

      C:/Dev-Cpp/include/c++/bits/ios_base.h: At global scope:
      C:/Dev-Cpp/include/c++/bits/ios_base.h:240: error: streamsize' does not name a type C:/Dev-Cpp/include/c++/bits/ios_base.h:241: error:streamsize' does not name a type

      C:/Dev-Cpp/include/c++/bits/ios_base.h:360: error: streamsize' does not name a type C:/Dev-Cpp/include/c++/bits/ios_base.h:363: error:streamsize' does not name a type
      C:/Dev-Cpp/include/c++/bits/ios_base.h:371: error: streamsize' does not name a type C:/Dev-Cpp/include/c++/bits/ios_base.h:374: error:streamsize' does not name a type

      C:/Dev-Cpp/include/c++/bits/ios_base.h: In member function void std::ios_base::_Callback_list::_M_add_reference()': C:/Dev-Cpp/include/c++/bits/ios_base.h:261: error:atomic_add' undeclared (first use this function)
      C:/Dev-Cpp/include/c++/bits/ios_base.h: In member function int std::ios_base::_Callback_list::_M_remove_reference()': C:/Dev-Cpp/include/c++/bits/ios_base.h:265: error:
      exchange_and_add' undeclared (first use this function)

      In file included from C:/Dev-Cpp/include/c++/ios:50,
      from C:/Dev-Cpp/include/c++/ostream:45,

                   from C:/Dev-Cpp/include/c++/iostream:45,
                   from H:\COCS 504\week 4\TestLL.cpp:2:
      

      C:/Dev-Cpp/include/c++/streambuf: At global scope:
      C:/Dev-Cpp/include/c++/streambuf:55: error: expected constructor, destructor, or type conversion before "__copy_streambufs"
      C:/Dev-Cpp/include/c++/streambuf:55: error: expected ;' before &quot;__copy_streambufs&quot; C:/Dev-Cpp/include/c++/streambuf:82: error:streamsize' does not name a type
      C:/Dev-Cpp/include/c++/streambuf:269: error: streamsize' has not been declared C:/Dev-Cpp/include/c++/streambuf:287: error:streamsize' does not name a type
      C:/Dev-Cpp/include/c++/streambuf:329: error: streamsize' does not name a type C:/Dev-Cpp/include/c++/streambuf:344: error:streamsize' does not name a type
      C:/Dev-Cpp/include/c++/streambuf:415: error: streamsize' has not been declared C:/Dev-Cpp/include/c++/streambuf:432: error:streamsize' does not name a type
      C:/Dev-Cpp/include/c++/streambuf:435: error: `streamsize' does not name a type

      C:/Dev-Cpp/include/c++/streambuf:464: error: `streamsize' does not name a type

      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 H:\COCS 504\week 4\TestLL.cpp:2:
      C:/Dev-Cpp/include/c++/bits/locale_facets.h:448: error: `streamsize' has not been declared

      C:/Dev-Cpp/include/c++/bits/locale_facets.h: In constructor std::numpunct_byname&lt;_CharT&gt;::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: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 destructorvirtual 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&lt;_CharT&gt;::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: _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&lt;_CharT, _Intl&gt;::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 destructorvirtual 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/locale_facets.h:1743,
      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 H:\COCS 504\week 4\TestLL.cpp:2:
      C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/mingw32/bits/messages_members.h: At global scope:
      C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/mingw32/bits/messages_members.h:39: error: redefinition of std::messages&lt;_CharT&gt;::messages(size_t)' C:/Dev-Cpp/include/c++/bits/locale_facets.h:1640: error:std::messages<_CharT>::messages(size_t)' previously declared here
      C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/mingw32/bits/messages_members.h: In constructor std::messages&lt;_CharT&gt;::messages(size_t)': C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/mingw32/bits/messages_members.h:40: error: there are no arguments to_S_get_c_locale' that depend on a template parameter, so a declaration of _S_get_c_locale' must be available C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/mingw32/bits/messages_members.h: At global scope: C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/mingw32/bits/messages_members.h:44: error: redefinition ofstd::messages<_CharT>::messages(int, const char, size_t)'
      C:/Dev-Cpp/include/c++/bits/locale_facets.h:1646: error: std::messages&lt;_CharT&gt;::messages(int*, const char*, size_t)' previously declared here C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/mingw32/bits/messages_members.h: In constructorstd::messages<_CharT>::messages(int, const char, size_t)':
      C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/mingw32/bits/messages_members.h:45: error: there are no arguments to _S_get_c_locale' that depend on a template parameter, so a declaration of_S_get_c_locale' must be available
      C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/mingw32/bits/messages_members.h: At global scope:
      C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/mingw32/bits/messages_members.h:56: error: redefinition of std::messages&lt;_CharT&gt;::~messages()' C:/Dev-Cpp/include/c++/bits/locale_facets.h:1671: error:virtual std::messages<_CharT>::~messages()' previously declared here
      C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/mingw32/bits/messages_members.h:77: error: invalid use of undefined type struct std::messages_byname&lt;_CharT&gt;' C:/Dev-Cpp/include/c++/bits/localefwd.h:176: error: declaration ofstruct std::messages_byname<_CharT>'
      C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/mingw32/bits/messages_members.h:77: error: template definition of non-template `std::messages_byname<_CharT>::messages_byname(const char*, size_t)'

      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 H:\COCS 504\week 4\TestLL.cpp:2:
      C:/Dev-Cpp/include/c++/bits/locale_facets.h: In constructor std::messages_byname&lt;_CharT&gt;::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++/iostream:45,
      from H:\COCS 504\week 4\TestLL.cpp:2:
      C:/Dev-Cpp/include/c++/ostream: At global scope:
      C:/Dev-Cpp/include/c++/ostream:161: error: `streamsize' has not been declared

      In file included from C:/Dev-Cpp/include/c++/istream:45,
      from C:/Dev-Cpp/include/c++/iostream:46,
      from H:\COCS 504\week 4\TestLL.cpp:2:
      C:/Dev-Cpp/include/c++/limits:48:29: bits/cpu_limits.h: No such file or directory

      In file included from C:/Dev-Cpp/include/c++/iostream:46,
      from H:\COCS 504\week 4\TestLL.cpp:2:
      C:/Dev-Cpp/include/c++/istream:71: error: `streamsize' does not name a type

      C:/Dev-Cpp/include/c++/istream:147: error: streamsize' does not name a type C:/Dev-Cpp/include/c++/istream:158: error:streamsize' has not been declared
      C:/Dev-Cpp/include/c++/istream:161: error: streamsize' has not been declared C:/Dev-Cpp/include/c++/istream:172: error:streamsize' has not been declared
      C:/Dev-Cpp/include/c++/istream:175: error: streamsize' has not been declared C:/Dev-Cpp/include/c++/istream:179: error: expected;' before '(' token
      C:/Dev-Cpp/include/c++/istream:185: error: streamsize' has not been declared C:/Dev-Cpp/include/c++/istream:187: error:streamsize' does not name a type
      C:/Dev-Cpp/include/c++/istream: In constructor std::basic_istream&lt;_CharT, _Traits&gt;::basic_istream(std::basic_streambuf&lt;_CharT, _Traits&gt;*)': C:/Dev-Cpp/include/c++/istream:79: error:_M_gcount' undeclared (first use this function)
      C:/Dev-Cpp/include/c++/istream:79: error: there are no arguments to streamsize' that depend on a template parameter, so a declaration ofstreamsize' must be available
      C:/Dev-Cpp/include/c++/istream: In destructor virtual std::basic_istream&lt;_CharT, _Traits&gt;::~basic_istream()': C:/Dev-Cpp/include/c++/istream:84: error:_M_gcount' undeclared (first use this function)
      C:/Dev-Cpp/include/c++/istream:84: error: there are no arguments to streamsize' that depend on a template parameter, so a declaration ofstreamsize' must be available
      H:\COCS 504\week 4\TestLL.cpp: In function int main()': H:\COCS 504\week 4\TestLL.cpp:10: error:System' undeclared (first use this function)

      Execution terminated

      Thanks,
      Charlie

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.