Author Topic: a strange debug msg  (Read 3929 times)

aguai

  • Guest
a strange debug msg
« on: February 15, 2007, 10:32:01 pm »
it comes "only" with Mingw GCC
and it just comes suddenly......
(like yesterday it works fine an today it became like this....)


--
Compiling: C:\AllTheseCPP\test.cpp
In file included from C:/MinGW/include/c++/3.2.3/iosfwd:46,
                 from C:/MinGW/include/c++/3.2.3/ios:44,
                 from C:/MinGW/include/c++/3.2.3/ostream:45,
                 from C:/MinGW/include/c++/3.2.3/iostream:45,
                 from C:/AllTheseCPP/test.cpp:1:
C:/MinGW/include/c++/3.2.3/bits/fpos.h:60: 'streamoff' is used as a type, but
   is not defined as a type.
C:/MinGW/include/c++/3.2.3/bits/fpos.h:74: parse error before `__off'
C:/MinGW/include/c++/3.2.3/bits/fpos.h:75: missing ';' before right brace
C:/MinGW/include/c++/3.2.3/bits/fpos.h:77: semicolon missing after declaration
   of `std::fpos<_StateT>'
C:/MinGW/include/c++/3.2.3/bits/fpos.h: In constructor
   `std::fpos<_StateT>::fpos()':
C:/MinGW/include/c++/3.2.3/bits/fpos.h:72: class `std::fpos<_StateT>' does not
   have any field named `_M_off'
C:/MinGW/include/c++/3.2.3/bits/fpos.h: At global scope:
C:/MinGW/include/c++/3.2.3/bits/fpos.h:77: parse error before `(' token
C:/MinGW/include/c++/3.2.3/bits/fpos.h:77: ISO C++ forbids defining types
   within return type
C:/MinGW/include/c++/3.2.3/bits/fpos.h:77: syntax error before `(' token
C:/MinGW/include/c++/3.2.3/bits/fpos.h:79: syntax error before `&' token
C:/MinGW/include/c++/3.2.3/bits/fpos.h:82: syntax error before `&' token
C:/MinGW/include/c++/3.2.3/bits/fpos.h:86: syntax error before `operator'
C:/MinGW/include/c++/3.2.3/bits/fpos.h:89: syntax error before `+=' token
C:/MinGW/include/c++/3.2.3/bits/fpos.h:94: syntax error before `operator'
C:/MinGW/include/c++/3.2.3/bits/fpos.h:97: syntax error before `-=' token
C:/MinGW/include/c++/3.2.3/bits/fpos.h:102: parse error before `&' token
C:/MinGW/include/c++/3.2.3/bits/fpos.h:103: non-member function `bool
   operator==(...)' cannot have `const' method qualifier
C:/MinGW/include/c++/3.2.3/bits/fpos.h:103: `bool operator==(...)' must have an
   argument of class or enumerated type
C:/MinGW/include/c++/3.2.3/bits/fpos.h:103: `bool operator==(...)' must take
   exactly two arguments
C:/MinGW/include/c++/3.2.3/bits/fpos.h: In function `bool operator==(...)':
C:/MinGW/include/c++/3.2.3/bits/fpos.h:103: `_M_off' undeclared (first use this
   function)
C:/MinGW/include/c++/3.2.3/bits/fpos.h:103: (Each undeclared identifier is
   reported only once for each function it appears in.)
C:/MinGW/include/c++/3.2.3/bits/fpos.h:103: `__pos' undeclared (first use this
   function)
C:/MinGW/include/c++/3.2.3/bits/fpos.h: At global scope:
C:/MinGW/include/c++/3.2.3/bits/fpos.h:106: parse error before `&' token
C:/MinGW/include/c++/3.2.3/bits/fpos.h:107: non-member function `bool
   operator!=(...)' cannot have `const' method qualifier
C:/MinGW/include/c++/3.2.3/bits/fpos.h:107: `bool operator!=(...)' must have an
   argument of class or enumerated type
C:/MinGW/include/c++/3.2.3/bits/fpos.h:107: `bool operator!=(...)' must take
   exactly two arguments
C:/MinGW/include/c++/3.2.3/bits/fpos.h:110: parse error before `)' token
C:/MinGW/include/c++/3.2.3/bits/fpos.h:113: `streamoff' was not declared in
   this scope
C:/MinGW/include/c++/3.2.3/bits/fpos.h:113: parse error before `)' token
C:/MinGW/include/c++/3.2.3/bits/fpos.h: In function `void _M_position(...)':
C:/MinGW/include/c++/3.2.3/bits/fpos.h:113: `__off' undeclared (first use this
   function)
C:/MinGW/include/c++/3.2.3/bits/fpos.h: At global scope:
C:/MinGW/include/c++/3.2.3/bits/fpos.h:114: parse error before `}' token
C:/MinGW/include/c++/3.2.3/bits/fpos.h:117: syntax error before `;' token
In file included from C:/MinGW/include/c++/3.2.3/ios:46,
                 from C:/MinGW/include/c++/3.2.3/ostream:45,
                 from C:/MinGW/include/c++/3.2.3/iostream:45,
                 from C:/AllTheseCPP/test.cpp:1:
C:/MinGW/include/c++/3.2.3/bits/char_traits.h:59: parse error before `;' token
C:/MinGW/include/c++/3.2.3/bits/char_traits.h:60: parse error before `;' token
C:/MinGW/include/c++/3.2.3/bits/char_traits.h:113: parse error before `;' token
C:/MinGW/include/c++/3.2.3/bits/char_traits.h:114: parse error before `;' token
In file included from C:/MinGW/include/c++/3.2.3/bits/localefwd.h:46,
                 from C:/MinGW/include/c++/3.2.3/ios:48,
                 from C:/MinGW/include/c++/3.2.3/ostream:45,
                 from C:/MinGW/include/c++/3.2.3/iostream:45,
                 from C:/AllTheseCPP/test.cpp:1:
C:/MinGW/include/c++/3.4.2/mingw32/bits/c++locale.h:58: parse error before `
   __attribute__'
C:/MinGW/include/c++/3.4.2/mingw32/bits/c++locale.h: In function `int
   std::__convert_from_v(...)':
C:/MinGW/include/c++/3.4.2/mingw32/bits/c++locale.h:63: `__old' undeclared
   (first use this function)
C:/MinGW/include/c++/3.4.2/mingw32/bits/c++locale.h:64: initializer list being
   treated as compound expression
C:/MinGW/include/c++/3.4.2/mingw32/bits/c++locale.h:65: initializer list being
   treated as compound expression
C:/MinGW/include/c++/3.4.2/mingw32/bits/c++locale.h:65: invalid conversion from
   `const char*' to `int'
C:/MinGW/include/c++/3.4.2/mingw32/bits/c++locale.h:68: `__out' undeclared
   (first use this function)
C:/MinGW/include/c++/3.4.2/mingw32/bits/c++locale.h:68: `__size' undeclared
   (first use this function)
C:/MinGW/include/c++/3.4.2/mingw32/bits/c++locale.h:68: `__fmt' undeclared
   (first use this function)
C:/MinGW/include/c++/3.4.2/mingw32/bits/c++locale.h:68: `__prec' undeclared
   (first use this function)
C:/MinGW/include/c++/3.4.2/mingw32/bits/c++locale.h:68: `__v' undeclared (first
   use this function)
C:/MinGW/include/c++/3.4.2/mingw32/bits/c++locale.h:68: `snprintf' undeclared
   in namespace `std'
C:/MinGW/include/c++/3.4.2/mingw32/bits/c++locale.h:72: redefinition of `int
   std::setlocale'
C:/MinGW/include/c++/3.4.2/mingw32/bits/c++locale.h:65: `int std::setlocale'
   previously declared here
C:/MinGW/include/c++/3.4.2/mingw32/bits/c++locale.h:72: declaration of `int
   std::setlocale'
C:/MinGW/include/c++/3.4.2/mingw32/bits/c++locale.h:65: conflicts with previous
Process terminated with status 1 (0 minutes, 2 seconds)
50 errors, 0 warnings
---

PLZ anyone can give me some suggestion...
about the 'streamoff' .......

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: a strange debug msg
« Reply #1 on: February 15, 2007, 10:43:39 pm »
Unless you are really using GCC 3.2.3 I suggest removing the "3.2.3" folders under minGW. I would just re-install minGW, but I have found that most people don't do multiple minGW installs like I do.

Tim S
« Last Edit: February 15, 2007, 10:49:17 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org