Mailinglist Archive: opensuse (4053 mails)
| < Previous | Next > |
Re: [SLE] g++, gcc issues
- From: Jonathan Drews <j.e.drews@xxxxxxxxxxxxxxxx>
- Date: Thu, 2 Aug 2001 20:51:55 -0500
- Message-id: <20010803015145.VRCI3707.mtiwmhc24.worldnet.att.net@there>
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
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 > |