test out the newly install gcc

Jim Wilson wilson@tuliptree.org
Wed May 7 07:28:00 GMT 2003


Andrew Lui wrote:
> How can I test whether the gcc is working or not?

Looks like you already tested it, and it isn't working.

> g++: installation problem, cannot exec `cpp0': No such file or directory

Looks like an installation problem.  Make sure that you are running the 
right g++ binary.  You might have multiple ones installed, and you might 
be running the wrong one.  If you are using sh, try "type g++".  For 
csh, which g++ should work.

The -v option might give clues as to what is wrong.  Also, try 
--print-search-dirs.  If cpp0 isn't on any of the search directories, 
then g++ won't be able to find it.  If cpp0 doesn't exist at all then 
something is seriously wrong with the install.  If cpp0 is in a 
directory not being searched, then maybe gcc was installed in the wrong 
place.

Jim



More information about the Gcc mailing list