This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Trouble with Cygwin GCC Ver 3.3.1
- From: "ragunath sankaranarayanan" <ssragunath at lycos dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Wed, 05 Nov 2003 08:58:40 -0800
- Subject: Trouble with Cygwin GCC Ver 3.3.1
- Organization: Lycos Mail (http://www.mail.lycos.com:80)
- Reply-to: ssragunath at lycos dot com
Hello,
This is my first post and I am not sure whether this is the correct forum. If I am posting in the wrong place, please point me to the correct forum.
I installed GCC 3.3.1 which came with current cygwin version as default. I am getting errors for even a very simple code from Deitel & Deitel.
$ cat test2.cpp
#include <iostream>
int main()
{
std::cout << "welcome";
std::cout <<"to C++\n";
return 0;
}
$g++ test2.cpp -o test2
In file included from /usr/include/c++/3.3.1/bits/fpos.h:45,
from /usr/include/c++/3.3.1/iosfwd:49,
from /usr/include/c++/3.3.1/ios:44,
from /usr/include/c++/3.3.1/ostream:45,
from /usr/include/c++/3.3.1/iostream:45,
from test2.cpp:1:
/usr/include/c++/3.3.1/cwchar:71: error: `mbstate_t' not declared
In file included from /usr/include/c++/3.3.1/iosfwd:49,
from /usr/include/c++/3.3.1/ios:44,
from /usr/include/c++/3.3.1/ostream:45,
from /usr/include/c++/3.3.1/iostream:45,
from test2.cpp:1:
/usr/include/c++/3.3.1/bits/fpos.h:120: error: `mbstate_t' was not declared in
this scope
/usr/include/c++/3.3.1/bits/fpos.h:120: error: template argument 1 is invalid
In file included from /usr/include/c++/3.3.1/ios:46,
from /usr/include/c++/3.3.1/ostream:45,
from /usr/include/c++/3.3.1/iostream:45,
from test2.cpp:1:
/usr/include/c++/3.3.1/bits/char_traits.h:69: error: parse error before `;'
token
...... so on.....
I am sure that something with the installation is wrong. I tried reinstalling gcc (only) using the cygwin setup, but still landed up with the same error. Can someone please tell me what's wrong here ?
Thanks.
Ragu
____________________________________________________________
FREE ADHD DVD or CD-Rom (your choice) - click here!
http://ad.doubleclick.net/clk;6413623;3807821;f?http://mocda2.com/1/c/563632/131726/311392/311392
AOL users go here: http://ad.doubleclick.net/clk;6413623;3807821;f?http://mocda2.com/1/c/563632/131726/311392/311392
This offer applies to U.S. Residents Only