CPP error...


Recommended Posts

Hello, I am trying to use CPP on my new linux install and everytime i call it I get this error...

cpp: installation problem, cannot exec `cc1': No such file or directory

I have searched around and found that people are having this problem with gcc too. I am new to Linux so could someone help me sort this out?

I did a file search for cc1 and it found nothing, I am assuming that I need to install this but I cant find an rpm or anything...

Many Thanks

Tom

Link to comment
Share on other sites

Thanks that was it, sorted now.... I have another question if you dont mind.....

I am using cpp to analyse a Turtle program so that I can use the #define function (It is part of an assignment so I have to do it this way). This works fine, however I am piping the output of cpp into a java program that I have written to compile the code. The output of CPP adds:

# 1 "demo/hilbert.t"

# 1 "<built-in>"

# 1 "<command line>"

# 1 "demo/hilbert.t"

to the beginning of the stream which obviously throws my compiler off. Is there anyway to stop this from being output?

Many thanks

Tom

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.