Just installed mingw... No windows header?

This is a discussion on Just installed mingw... No windows header? within the Tech Board forums, part of the Community Boards category; I just installed mingw, I got it working... I think. I tried compiling a test program... It gives me an ...

  1. #1
    60% Braindead
    Join Date
    Dec 2005
    Posts
    379

    Just installed mingw... No windows header?

    I just installed mingw, I got it working... I think. I tried compiling a test program... It gives me an error saying:

    $ g++ C:\\Test.cpp
    C:\Test.cpp:1:21: windows.h: No such file or directory

    I'm lost, I've read mingw's documentation, I'm lost in the maze of header directories in mingw's header library.

    I'm sure theres a simple reason why this isint working, I'm just not sure what -,-.
    Code:
    Error W8057 C:\\Life.cpp: Invalid number of arguments in function run(Brain *)

  2. #2
    Registered /usr
    Join Date
    Aug 2001
    Location
    Newport, South Wales, UK
    Posts
    1,255
    MinGW isn't licensed by Microsoft to have the Platform SDK bundled with it.

  3. #3
    60% Braindead
    Join Date
    Dec 2005
    Posts
    379
    I downloaded the sdk, where do I throw the include files to get mingw to use them?
    Code:
    Error W8057 C:\\Life.cpp: Invalid number of arguments in function run(Brain *)

  4. #4
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    If you downloaded and installed MinGW you should have everything you need to get going. For example, if you take a look in your MinGW installation directory you will find 'include' and 'lib' directories; the former should contain windows.h. Your problem is likely to be in how you are invoking the tools; if you don't sort that out you're not going to help yourself by adding another layer of complication; and it's certainly not the wisest of choices mixing different libraries etc unless you have a good idea of what you are doing.

    Rather than fiddle around with command line tools that you seem to be having difficulty with, why don't you use an ide until you become more comfortable with the build process and tools configuration? You can always drop back to using the command line at a later stage if you wish - just because you have an ide it doesn't lock you into using it exclusively.

    BTW did you install MinGW by using one of their recent installers or did you attempt to install the various components individually?

    Also, does a non-windows test program compile?
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

  5. #5
    60% Braindead
    Join Date
    Dec 2005
    Posts
    379
    I didint know there was a mingw installer? I just extracted the files individualy. MSYS was installed however.

    Lib contains nothing but .a and .la files. Include\C++\3.4.2\ has only two headers in it. The rest of the files are... I have no idea what they are. They all have names of headers, but none of them are .h / .cpp or .anything in fact. Include has four subdirectories, they all have a few headers. It doesnt seem nearly as much as it should. Windows isint in any of theyse.

    Well, does a none windows program compile... Nope.

    This little program I made and tried to compile:

    Code:
    #include <iostream>
    using namespace std;
    
    int main() {
     cout << "Test";
    }
    And... This... Came out:

    Code:
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/ne   :87: error: `size_t' is not a member of `std'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/ne   :87: error: expected primary-expression before "const"
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/ne   :87: error: expected `,' or `;' before "throw"
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/ne   :92: error: declaration of `operator new' as non-function
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/ne   :92: error: `size_t' is not a member of `std'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/ne   :92: error: expected primary-expression before "void"
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/ne   :92: error: expected `,' or `;' before "throw"
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/ne   :93: error: declaration of `operator new []' as non-function
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/ne   :93: error: `size_t' is not a member of `std'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/ne   :93: error: expected primary-expression before "void"
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/ne   :93: error: expected `,' or `;' before "throw"
    In file included from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/bits/stl_algobase.h:73,
                     from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/bits/char_traits.h:46,
                     from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/ios:46,
                     from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/ostream:45,
                     from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/iostream:45,
                     from C:\test.cpp:1:
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/stl_iterator_base_types.h:104: error: `ptrdiff_t' has not been declared
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/stl_iterator_base_types.h:141: error: `ptrdiff_t' does not name a type
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/stl_iterator_base_types.h:151: error: `ptrdiff_t' does not name a type
    In file included from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/debug/debug.h:272,
                     from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/bits/stl_algobase.h:77,
                     from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/bits/char_traits.h:46,
                     from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/ios:46,
                     from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/ostream:45,
                     from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/iostream:45,
                     from C:\test.cpp:1:
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/ca   sert:48:20: assert.h: No such file or directory
    In file included from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/bits/char_traits.h:46,
                     from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/ios:46,
                     from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/ostream:45,
                     from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/iostream:45,
                     from C:\test.cpp:1:
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/stl_algobase.h: In function `_Tp* std::__copy_trivial(const _Tp*, const _Tp*,   _Tp*)':
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/stl_algobase.h:258: error: `memmove' is not a member of `std'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/stl_algobase.h: In static member function `static _Tp* std::__copy_backward_d   spatch<_Tp*, _Tp*, __true_type>::copy(const _Tp*, const _Tp*, _Tp*)':
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/stl_algobase.h:406: error: `ptrdiff_t' does not name a type
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/stl_algobase.h:407: error: `memmove' is not a member of `std'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/stl_algobase.h:407: error: `_Num' undeclared (first use this function)
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/stl_algobase.h: In function `void std::fill(unsigned char*, unsigned char*, c   nst unsigned char&)':
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/stl_algobase.h:556: error: `memset' is not a member of `std'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/stl_algobase.h: In function `void std::fill(signed char*, signed char*, const   signed char&)':
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/stl_algobase.h:564: error: `memset' is not a member of `std'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/stl_algobase.h: In function `void std::fill(char*, char*, const char&)':
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/stl_algobase.h:572: error: `memset' is not a member of `std'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/stl_algobase.h: In function `bool std::lexicographical_compare(const unsigned   char*, const unsigned char*, const unsigned char*, const unsigned char*)':
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/stl_algobase.h:812: error: `size_t' does not name a type
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/stl_algobase.h:813: error: `size_t' does not name a type
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/stl_algobase.h:814: error: `memcmp' is not a member of `std'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/stl_algobase.h:815: error: `__len1' undeclared (first use this function)
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/stl_algobase.h:815: error: `__len2' undeclared (first use this function)
    In file included from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/ios:46,
                     from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/ostream:45,
                     from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/iostream:45,
                     from C:\test.cpp:1:
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h: At global scope:
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h:67: error: expected `;' before "off_type"
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h:68: error: expected `;' before "state_type"
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h:108: error: `std::size_t' has not been declared
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h:111: error: invalid use of `::'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h:111: error: expected `;' before "length"
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h:114: error: `std::size_t' has not been declared
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h:117: error: `std::size_t' has not been declared
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h:120: error: `std::size_t' has not been declared
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h:123: error: `std::size_t' has not been declared
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h: In static member function `static typename __gnu_cxx::_Char_ty   es<_CharT>::int_type __gnu_cxx::char_traits<_CharT>::eof()':
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h:139: error: `EOF' undeclared (first use this function)
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h: At global scope:
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h:149: error: `std::size_t' has not been declared
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h: In static member function `static int __gnu_cxx::char_traits<_   harT>::compare(const _CharT*, const _CharT*, int)':
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h:151: error: `size_t' undeclared (first use this function)
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h:151: error: expected `;' before "__i"
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h:151: error: `__i' undeclared (first use this function)
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h: At global scope:
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h:161: error: expected constructor, destructor, or type conversio    before "char_traits"
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h:161: error: expected `;' before "char_traits"
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h:173: error: `std::size_t' has not been declared
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h: In static member function `static const typename __gnu_cxx::ch   r_traits<_CharT>::char_type* __gnu_cxx::char_traits<_CharT>::find(const _CharT*    int, const _CharT&)':
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h:175: error: `size_t' is not a member of `std'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h:175: error: expected `;' before "__i"
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h:175: error: `__i' undeclared (first use this function)
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h: At global scope:
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h:184: error: `std::size_t' has not been declared
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h: In static member function `static typename __gnu_cxx::char_tra   ts<_CharT>::char_type* __gnu_cxx::char_traits<_CharT>::move(_CharT*, const _Cha   T*, int)':
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h:186: error: `memmove' is not a member of `std'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h: At global scope:
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h:193: error: `std::size_t' has not been declared
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h:202: error: `std::size_t' has not been declared
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h:237: error: `streamoff' does not name a type
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h:238: error: `mbstate_t' does not name a type
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h:253: error: `size_t' has not been declared
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h:256: error: `size_t' does not name a type
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h:261: error: `size_t' has not been declared
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h:265: error: `size_t' has not been declared
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h:269: error: `size_t' has not been declared
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h:273: error: `size_t' has not been declared
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h: In static member function `static int std::char_traits<char>::   ompare(const char*, const char*, int)':
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h:254: error: `memcmp' undeclared (first use this function)
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h: In static member function `static const char* std::char_traits   char>::find(const char*, int, const char&)':
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h:262: error: invalid conversion from `const void*' to `void*'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h:262: error:   initializing argument 1 of `void* std::memchr(voi   *, int, int)'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h: In static member function `static char* std::char_traits<char>   :move(char*, const char*, int)':
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h:266: error: `memmove' undeclared (first use this function)
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h: In static member function `static char* std::char_traits<char>   :copy(char*, const char*, int)':
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h:270: error: `memcpy' undeclared (first use this function)
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h: In static member function `static char* std::char_traits<char>   :assign(char*, int, char)':
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h:274: error: `memset' undeclared (first use this function)
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h: In static member function `static int std::char_traits<char>::   of()':
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h:291: error: `EOF' undeclared (first use this function)
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h: At global scope:
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h:305: error: `wint_t' does not name a type
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h:306: error: `streamoff' does not name a type
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h:325: error: `size_t' has not been declared
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h:328: error: `size_t' does not name a type
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h:333: error: `size_t' has not been declared
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h:337: error: `size_t' has not been declared
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h:341: error: `size_t' has not been declared
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h:345: error: `size_t' has not been declared
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h:349: error: expected `,' or `...' before '&' token
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h:351: error: `int_type' does not name a type
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h:355: error: expected `,' or `...' before '&' token
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h:358: error: `int_type' does not name a type
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h:361: error: `int_type' does not name a type
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h: In static member function `static int std::char_traits<wchar_t   ::compare(const wchar_t*, const wchar_t*, int)':
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h:326: error: `wmemcmp' undeclared (first use this function)
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h: In static member function `static const wchar_t* std::char_tra   ts<wchar_t>::find(const wchar_t*, int, const wchar_t&)':
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h:334: error: invalid conversion from `const wchar_t*' to `wchar_   *'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h:334: error:   initializing argument 1 of `wchar_t* std::wmemchr   wchar_t*, wchar_t, int)'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h: In static member function `static wchar_t* std::char_traits<wc   ar_t>::move(wchar_t*, const wchar_t*, int)':
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h:338: error: `wmemmove' undeclared (first use this function)
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h: In static member function `static wchar_t* std::char_traits<wc   ar_t>::copy(wchar_t*, const wchar_t*, int)':
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h:342: error: `wmemcpy' undeclared (first use this function)
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h: In static member function `static wchar_t* std::char_traits<wc   ar_t>::assign(wchar_t*, int, wchar_t)':
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h:346: error: `wmemset' undeclared (first use this function)
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h: In static member function `static wchar_t std::char_traits<wch   r_t>::to_char_type(int)':
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h:349: error: `__c' undeclared (first use this function)
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h: In static member function `static bool std::char_traits<wchar_   >::eq_int_type(int)':
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h:356: error: `__c1' undeclared (first use this function)
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/char_traits.h:356: error: `__c2' undeclared (first use this function)
    In file included from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/ios:48,
                     from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/ostream:45,
                     from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/iostream:45,
                     from C:\test.cpp:1:
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/localefwd.h: At global scope:
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/localefwd.h:124: error: `mbstate_t' was not declared in this scope
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/localefwd.h:124: error: template argument 3 is invalid
    In file included from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/mingw32/bits/c++allocator.h:34,
                     from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/bits/allocator.h:52,
                     from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/memory:55,
                     from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/string:48,
                     from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/bits/locale_classes.h:47,
                     from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/bits/ios_base.h:47,
                     from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/ios:49,
                     from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/ostream:45,
                     from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/iostream:45,
                     from C:\test.cpp:1:
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/ex   /new_allocator.h:50: error: `size_t' does not name a type
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/ex   /new_allocator.h:51: error: `ptrdiff_t' does not name a type
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/ex   /new_allocator.h:80: error: expected `;' before '(' token
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/ex   /new_allocator.h:84: error: expected `;' before "void"
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/ex   /new_allocator.h:85: error: `size_type' has not been declared
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/ex   /new_allocator.h:88: error: `size_type' does not name a type
    In file included from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/memory:55,
                     from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/string:48,
                     from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/bits/locale_classes.h:47,
                     from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/bits/ios_base.h:47,
                     from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/ios:49,
                     from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/ostream:45,
                     from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/iostream:45,
                     from C:\test.cpp:1:
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/allocator.h:63: error: `size_t' does not name a type
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/allocator.h:64: error: `ptrdiff_t' does not name a type
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/allocator.h:83: error: `size_t' does not name a type
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/allocator.h:84: error: `ptrdiff_t' does not name a type
    In file included from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/memory:58,
                     from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/string:48,
                     from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/bits/locale_classes.h:47,
                     from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/bits/ios_base.h:47,
                     from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/ios:49,
                     from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/ostream:45,
                     from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/iostream:45,
                     from C:\test.cpp:1:
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/stl_uninitialized.h: In function `char* std::uninitialized_copy(const char*,    onst char*, char*)':
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/stl_uninitialized.h:119: error: `memmove' is not a member of `std'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/stl_uninitialized.h: In function `wchar_t* std::uninitialized_copy(const wcha   _t*, const wchar_t*, wchar_t*)':
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/stl_uninitialized.h:127: error: `memmove' is not a member of `std'
    In file included from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/string:48,
                     from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/bits/locale_classes.h:47,
                     from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/bits/ios_base.h:47,
                     from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/ios:49,
                     from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/ostream:45,
                     from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/iostream:45,
                     from C:\test.cpp:1:
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/me   ory: At global scope:
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/me   ory:73: error: `ptrdiff_t' was not declared in this scope
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/me   ory:74: error: template argument 2 is invalid
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/me   ory:74: error: invalid type in declaration before '(' token
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/me   ory:74: error: template declaration of `int std::__get_temporary_buffer'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/me   ory:74: error: `ptrdiff_t' was not declared in this scope
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/me   ory:74: error: expected primary-expression before '*' token
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/me   ory:74: error: expected primary-expression before ')' token
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/me   ory:75: error: expected `;' before '{' token
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/me   ory:108: error: `ptrdiff_t' was not declared in this scope
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/me   ory:109: error: template argument 2 is invalid
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/me   ory:109: error: `std::get_temporary_buffer' declared as an `inline' variable
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/me   ory:109: error: template declaration of `int std::get_temporary_buffer'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/me   ory:109: error: `ptrdiff_t' was not declared in this scope
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/me   ory:110: error: expected `;' before '{' token
    In file included from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/string:53,
                     from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/bits/locale_classes.h:47,
                     from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/bits/ios_base.h:47,
                     from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/ios:49,
                     from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/ostream:45,
                     from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/iostream:45,
                     from C:\test.cpp:1:
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/basic_string.h: In member function `std::basic_string<_CharT, _Traits, _Alloc   & std::basic_string<_CharT, _Traits, _Alloc>::erase(typename _Alloc::size_type,   typename _Alloc::size_type)':
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/basic_string.h:1037: error: `NULL' undeclared (first use this function)
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/basic_string.h: In member function `__gnu_cxx::__normal_iterator<typename _Al   oc::pointer, std::basic_string<_CharT, _Traits, _Alloc> > std::basic_string<_Ch   rT, _Traits, _Alloc>::erase(__gnu_cxx::__normal_iterator<typename _Alloc::point   r, std::basic_string<_CharT, _Traits, _Alloc> >)':
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/basic_string.h:1053: error: `NULL' undeclared (first use this function)
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/basic_string.h: In member function `__gnu_cxx::__normal_iterator<typename _Al   oc::pointer, std::basic_string<_CharT, _Traits, _Alloc> > std::basic_string<_Ch   rT, _Traits, _Alloc>::erase(__gnu_cxx::__normal_iterator<typename _Alloc::point   r, std::basic_string<_CharT, _Traits, _Alloc> >, __gnu_cxx::__normal_iterator<t   pename _Alloc::pointer, std::basic_string<_CharT, _Traits, _Alloc> >)':
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/basic_string.h:1073: error: `NULL' undeclared (first use this function)
    In file included from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/bits/stl_algo.h:65,
                     from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/algorithm:69,
                     from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/string:56,
                     from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/bits/locale_classes.h:47,
                     from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/bits/ios_base.h:47,
                     from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/ios:49,
                     from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/ostream:45,
                     from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/iostream:45,
                     from C:\test.cpp:1:
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/stl_tempbuf.h: At global scope:
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/stl_tempbuf.h:85: error: `ptrdiff_t' does not name a type
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/stl_tempbuf.h:88: error: `size_type' does not name a type
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/stl_tempbuf.h:89: error: `size_type' does not name a type
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/stl_tempbuf.h:101: error: `size_type' does not name a type
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/stl_tempbuf.h:106: error: `size_type' does not name a type
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/stl_tempbuf.h: In member function `void std::_Temporary_buffer<_ForwardIterat   r, _Tp>::_M_initialize_buffer(const _Tp&, __false_type)':
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/stl_tempbuf.h:97: error: `_M_len' undeclared (first use this function)
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/stl_tempbuf.h: In member function `_Tp* std::_Temporary_buffer<_ForwardIterat   r, _Tp>::end()':
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/stl_tempbuf.h:118: error: `_M_len' undeclared (first use this function)
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/stl_tempbuf.h: In destructor `std::_Temporary_buffer<_ForwardIterator, _Tp>::   _Temporary_buffer()':
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/stl_tempbuf.h:128: error: `_M_len' undeclared (first use this function)
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/stl_tempbuf.h: In constructor `std::_Temporary_buffer<_ForwardIterator, _Tp>:   _Temporary_buffer(_ForwardIterator, _ForwardIterator)':
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/stl_tempbuf.h:144: error: class `std::_Temporary_buffer<_ForwardIterator, _Tp   ' does not have any field named `_M_original_len'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/stl_tempbuf.h:145: error: class `std::_Temporary_buffer<_ForwardIterator, _Tp   ' does not have any field named `_M_len'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/stl_tempbuf.h:153: error: `size_type' undeclared (first use this function)
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/stl_tempbuf.h:153: error: template argument 2 is invalid
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/stl_tempbuf.h:153: error: invalid type in declaration before '(' token
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/stl_tempbuf.h:153: error: `get_temporary_buffer' undeclared (first use this f   nction)
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/stl_tempbuf.h:154: error: expected primary-expression before '>' token
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/stl_tempbuf.h:154: error: `_M_original_len' undeclared (first use this functi   n)
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/stl_tempbuf.h:155: error: `first' has not been declared
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/stl_tempbuf.h:155: error: request for member of non-aggregate type before ';'   token
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/stl_tempbuf.h:156: error: `_M_len' undeclared (first use this function)
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/stl_tempbuf.h:156: error: `second' has not been declared
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/stl_tempbuf.h:156: error: request for member of non-aggregate type before ';'   token
    In file included from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/algorithm:69,
                     from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/string:56,
                     from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/bits/locale_classes.h:47,
                     from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/bits/ios_base.h:47,
                     from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/ios:49,
                     from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/ostream:45,
                     from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/iostream:45,
                     from C:\test.cpp:1:
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/stl_algo.h: In function `void std::random_shuffle(_RandomAccessIterator, _Ran   omAccessIterator)':
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/stl_algo.h:1748: error: `rand' is not a member of `std'
    In file included from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/string:57,
                     from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/bits/locale_classes.h:47,
                     from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/bits/ios_base.h:47,
                     from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/ios:49,
                     from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/ostream:45,
                     from C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../.   /include/c++/3.4.2/iostream:45,
                     from C:\test.cpp:1:
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/basic_string.h: At global scope:
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/basic_string.h: In instantiation of `std::basic_string<char, std::char_traits   char>, std::allocator<char> >':
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/basic_string.tcc:936:   instantiated from here
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/basic_string.h:117: error: no type named `size_type' in `struct std::allocato   <char>'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/basic_string.h:118: error: no type named `difference_type' in `struct std::al   ocator<char>'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/basic_string.h:249: error: no type named `size_type' in `struct std::basic_st   ing<char, std::char_traits<char>, std::allocator<char> >'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/basic_string.h: In instantiation of `std::basic_string<char, std::char_traits   char>, std::allocator<char> >':
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/basic_string.tcc:936:   instantiated from here
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/basic_string.h:284: error: no type named `size_type' in `struct std::allocato   <char>'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/basic_string.h:293: error: no type named `size_type' in `struct std::allocato   <char>'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/basic_string.tcc:383: error: no type named `size_type' in `struct std::alloca   or<char>'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/basic_string.tcc:195: error: no type named `size_type' in `struct std::alloca   or<char>'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/basic_string.tcc:206: error: no type named `size_type' in `struct std::alloca   or<char>'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/basic_string.tcc:217: error: no type named `size_type' in `struct std::alloca   or<char>'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/basic_string.tcc:231: error: no type named `size_type' in `struct std::alloca   or<char>'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/basic_string.h:532: error: no type named `size_type' in `struct std::allocato   <char>'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/basic_string.h:537: error: no type named `size_type' in `struct std::allocato   <char>'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/basic_string.h:541: error: no type named `size_type' in `struct std::allocato   <char>'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/basic_string.tcc:567: error: no type named `size_type' in `struct std::alloca   or<char>'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/basic_string.h:567: error: no type named `size_type' in `struct std::allocato   <char>'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/basic_string.h:574: error: no type named `size_type' in `struct std::allocato   <char>'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/basic_string.tcc:419: error: no type named `size_type' in `struct std::alloca   or<char>'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/basic_string.h:621: error: no type named `size_type' in `struct std::allocato   <char>'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/basic_string.h:638: error: no type named `size_type' in `struct std::allocato   <char>'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/basic_string.h:656: error: no type named `size_type' in `struct std::allocato   <char>'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/basic_string.h:675: error: no type named `size_type' in `struct std::allocato   <char>'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/basic_string.tcc:613: error: no type named `size_type' in `struct std::alloca   or<char>'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/basic_string.tcc:630: error: no type named `size_type' in `struct std::alloca   or<char>'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/basic_string.h:761: error: no type named `size_type' in `struct std::allocato   <char>'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/basic_string.h:806: error: no type named `size_type' in `struct std::allocato   <char>'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/basic_string.tcc:262: error: no type named `size_type' in `struct std::alloca   or<char>'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/basic_string.h:850: error: no type named `size_type' in `struct std::allocato   <char>'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/basic_string.h:879: error: no type named `size_type' in `struct std::allocato   <char>'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/basic_string.h:909: error: no type named `size_type' in `struct std::allocato   <char>'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/basic_string.h:932: error: no type named `size_type' in `struct std::allocato   <char>'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/basic_string.tcc:288: error: no type named `size_type' in `struct std::alloca   or<char>'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/basic_string.h:972: error: no type named `size_type' in `struct std::allocato   <char>'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/basic_string.h:995: error: no type named `size_type' in `struct std::allocato   <char>'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/basic_string.h:1036: error: no type named `size_type' in `struct std::allocat   r<char>'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/basic_string.h:1096: error: no type named `size_type' in `struct std::allocat   r<char>'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/basic_string.h:1119: error: no type named `size_type' in `struct std::allocat   r<char>'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/basic_string.tcc:324: error: no type named `size_type' in `struct std::alloca   or<char>'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/basic_string.h:1161: error: no type named `size_type' in `struct std::allocat   r<char>'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/basic_string.h:1184: error: no type named `size_type' in `struct std::allocat   r<char>'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/basic_string.h:1220: error: no type named `size_type' in `struct std::allocat   r<char>'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/basic_string.h:1262: error: no type named `size_type' in `struct std::allocat   r<char>'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/basic_string.h:1353: error: no type named `size_type' in `struct std::allocat   r<char>'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/basic_string.h:1367: error: no type named `size_type' in `struct std::allocat   r<char>'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/basic_string.tcc:164: error: no type named `size_type' in `struct std::alloca   or<char>'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/basic_string.tcc:672: error: no type named `size_type' in `struct std::basic_   tring<char, std::char_traits<char>, std::allocator<char> >'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/basic_string.tcc:686: error: no type named `size_type' in `struct std::basic_   tring<char, std::char_traits<char>, std::allocator<char> >'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/basic_string.h:1495: error: no type named `size_type' in `struct std::allocat   r<char>'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/basic_string.h:1509: error: no type named `size_type' in `struct std::allocat   r<char>'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/basic_string.tcc:700: error: no type named `size_type' in `struct std::basic_   tring<char, std::char_traits<char>, std::allocator<char> >'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/basic_string.h:1539: error: no type named `size_type' in `struct std::allocat   r<char>'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/basic_string.tcc:718: error: no type named `size_type' in `struct std::basic_   tring<char, std::char_traits<char>, std::allocator<char> >'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/basic_string.h:1567: error: no type named `size_type' in `struct std::allocat   r<char>'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/basic_string.tcc:739: error: no type named `size_type' in `struct std::basic_   tring<char, std::char_traits<char>, std::allocator<char> >'
    C:/msys/1.0/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bi   s/basic_string.h:1597: error: no type named `size_type' in `struct std::allocat   r<char>'
    
    //More...
    Theres about four times as many errors as I posted here. I can only assume I really screwed up the installation ...

    I'm not using an ide because I dont feel comfortable with them, I'd use MSVS express if I wanted a good ide, seeing as it would be much easier to install -,-. Besides, me and notepad go together like guns n' bullets :P.
    Last edited by Blackroot; 08-24-2006 at 04:46 AM.
    Code:
    Error W8057 C:\\Life.cpp: Invalid number of arguments in function run(Brain *)

  6. #6
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    Rather than work piecemeal through fixing your current broken installation it's probably advisable to start again.

    1. Uninstall msys
    2. Remove all files relating to your current, broken MinGW installation
    3. Use the MinGW installer MinGW-5.0.3.exe. It will download everything you need; just follow the instructions.
    4. Reinstall msys, taking care during the installation to point it to MinGW when it asks you to. It's a good idea to install it to a different directory from MinGW.
    5. Periodically check MinGW's site for updates; for windows programming you'll want to check regularly for 'win32api' updates as these contain updated headers and libraries. You just have to extract these into your MinGW directory to update.
    6. When later versions of MinGW installers become available use them as they will automatically update your entire MinGW installation.


    The MinGWWiki page is likely to have more information that should be useful. In particular it does have information relating to installing MinGW from its various components but I'd advise you to use the installer as I have described above; if you want a manual installation then experiment in a separate directory so it doesn't interfere with your working MinGW installation.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

  7. #7
    60% Braindead
    Join Date
    Dec 2005
    Posts
    379
    Ah, got everything installed, should be working now.
    Code:
    Error W8057 C:\\Life.cpp: Invalid number of arguments in function run(Brain *)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Tutorial review
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 11
    Last Post: 03-22-2004, 08:40 PM
  2. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 09:33 AM
  3. Manipulating the Windows Clipboard
    By Johno in forum Windows Programming
    Replies: 2
    Last Post: 10-01-2002, 09:37 AM
  4. Using c++ standards
    By subdene in forum C++ Programming
    Replies: 4
    Last Post: 06-06-2002, 09:15 AM
  5. Replies: 6
    Last Post: 04-02-2002, 04:46 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21