Mailinglist Archive: opensuse (4053 mails)

< Previous Next >
Re: [SLE] g++, gcc issues
Hi:
On Thursday 02 August 2001 08:43 pm, you wrote:
> I recently upgraded to 7.2 suse and seem to have some issues with the gnu
> compilers.
>
> When using g++ with a simple 'hello world' program I get this error :
> ~> g++ test.C
> g++: installation problem, cannot exec `cc1plus': No such file or directory

You program should look like this:
// TEST.CPP Tests G++ compiler and GNU libraries
#include <iostream.h>

main()
{

cout << "hello world\n" << endl;
return(0);
}

then do:

poincare@linux:~/cprog > g++ -c test.cpp
poincare@linux:~/cprog > ls test*
test.cpp test.o
poincare@linux:~/cprog > g++ -o TEST test.o
poincare@linux:~/cprog > TEST
hello world

poincare@linux:~/cprog >


--
Cheers,


Jonathan

< Previous Next >
Follow Ups
References