LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices

Reply
 
Search this Thread
Old 12-23-2003, 06:09 AM   #1
TomAL
LQ Newbie
 
Registered: Dec 2003
Posts: 6

Rep: Reputation: 0
CPP error, please help...


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
 
Old 12-23-2003, 09:27 PM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,476

Rep: Reputation: 156Reputation: 156
"cpp: installation problem, cannot exec `cc1': No such file or directory"

cc stands for C compiler. The C compiler is always gcc. Check to see if you have gcc available with:
which gcc

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
Old 12-24-2003, 06:04 AM   #3
TomAL
LQ Newbie
 
Registered: Dec 2003
Posts: 6

Original Poster
Rep: Reputation: 0
Hi, Thanks, I managed to get it sorted turns out I didnt have gcc installed!

I have another question tho....

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
 
Old 12-24-2003, 09:57 AM   #4
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,476

Rep: Reputation: 156Reputation: 156
"Is there anyway to stop this from being output?"

You can place grep between the compiler and your Java program to delete the first four lines of output. See man grep.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cpp error ashirazi Programming 1 09-18-2004 05:49 PM
desperate help, CPP ERROR ashirazi Programming 4 09-17-2004 03:36 AM
Chitin.cpp error abk4523 Linux - Games 0 09-12-2004 10:17 AM
debian dpkg cpp depends on cpp error darkleaf Linux - Software 2 06-25-2004 01:47 AM
cpp error ANU Linux - Software 1 12-05-2003 11:24 PM


All times are GMT -5. The time now is 08:38 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration