This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

EGCS-1.1.2 , C++ with Sun-Sparc-Solaris2.3


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]