I am new to all this so I am sorry if this is a dumb question. I am =
trying to compile a c++ program and keep getting this error:
g++: installation problem, cannot exec `as': No such file or directory
C:\MINGW\BIN\MAKE.EXE: *** [all] Error 1
I have searched the old egroups archive to no avail, and cannot get to =
the archives for this list, so I am at a loose end as to what the =
problem is. I have tried the 1999 gcc-2.95-2 and the latest MIngw-1.0. =
With the new version I get "cannot find 'cpp0'" instead of as.
Any help would be appreciated.
I have a problem compiling my "hello-World"-program.
I downloaded the actual package, mingw2.0.0-3.exe, installed it in c:\mingw,
included C:\MinGW\bin in the path variable, and called
int main(int argc, char *argv)
It produced a long error message. Here is the last part of it (I could not
redirect it into a file):
C:/MinGW/include/c++/3.2/bits/type_traits.h:54:28: bits/c++config.h: No such
file or directory
In file included from C:/MinGW/include/c++/3.2/bits/stl_algobase.h:73,
C:/MinGW/include/c++/3.2/bits/stl_iterator_base_types.h:100: parse error
before `,' token
declaration of `typedef _Tp std::value_type'
C:/MinGW/include/c++/3.2/bits/stl_iterator_base_types.h:106: confused by
earlier errors, bailing out
I tried to set some environment variables, but without success. It is a
difficult problem for me since I am new to C++ and MinGW. It would be very
nice if someone could give me a hint of how to make MinGW work on my PC.
From: Oscar Fuentes <ofv@wa...> - 2002-10-06 12:14:18
"Karsten Weinert" <k.weinert@...> writes:
> I have a problem compiling my "hello-World"-program.
> I downloaded the actual package, mingw2.0.0-3.exe, installed it in c:\mingw,
> included C:\MinGW\bin in the path variable, and called
> g++ main.cpp
> with main.cpp:
> #include <iostream>
> int main(int argc, char *argv)
> cout<<"Hello World"<<'\n';
> return 0;
The Standard C++ Library names are on the 'std' namespace.