ScreenName1 Posted December 23, 2003 Share Posted December 23, 2003 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 More sharing options...
bluebsh Posted December 23, 2003 Share Posted December 23, 2003 sounds like it doesn't have the correct path to the compiler set up... Link to comment Share on other sites More sharing options...
ScreenName1 Posted December 23, 2003 Author Share Posted December 23, 2003 So how would I fix this? Also I cant find a cc1 file anywhere, should there be one? Cheers Tom Link to comment Share on other sites More sharing options...
kemical Posted December 23, 2003 Share Posted December 23, 2003 i think cc1 comes with the gcc install, maybe you haven't properly setup gcc right Link to comment Share on other sites More sharing options...
ScreenName1 Posted December 23, 2003 Author Share Posted December 23, 2003 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 More sharing options...
Recommended Posts