This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
EGCS-1.1.2 , C++ with Sun-Sparc-Solaris2.3
- To: GCC Help <gcc-help at gcc dot gnu dot org>
- Subject: EGCS-1.1.2 , C++ with Sun-Sparc-Solaris2.3
- From: Ken Hickey <khickey at thezone dot net>
- Date: Mon, 05 Nov 2001 17:09:55 -0330
Hi,
I've built the c++ compiler with this version of GCC but i get the
following error
when I try to compile a test program (couttest.cc) which is the
following:
#include <iostream.h>
main()
{
cout << "Hello world";
}
The compile command is the following under the 'gcc' sub-dir for the
installation:
g++ couttest.cc
The following error is then displayed:
cpp: Invalid option '-lang-c++'
Prior to this all I did was download the tar file 'egcs-1.1.2.tar',
extract all the goodies,
go to the sub-dir 'gcc', invoke configure, modify the Makefile generated
to only build
c and c++.
I was amazed that it actually worked....anyway, I guess it didn't?
Ken