LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 06-25-2006, 02:04 PM   #1
tirtha
LQ Newbie
 
Registered: Mar 2006
Posts: 10

Rep: Reputation: 0
Problem in C compiler


When I try to compile any program in C it does well in Gnome, but the same program is not being compiled in KDE , why ? it gives an error :
cc: installation problem, cannot exec `cc1': No such file or directory
Plz help me out.
thank you

$cat>hello.c
#inchude<stdio.h>
#include<conio.h>
main()
{
printf(" Hello World");
return 0;
}
$ cc -o hello.out hello.c
>>>> Here comers the error, which is given above
>>>> A program was compiled before as first.out, the compiler is not able to compile again the first.c file but can execute the first.out file !

Last edited by tirtha; 06-25-2006 at 02:31 PM.
 
Old 06-25-2006, 02:17 PM   #2
burntfuse
Member
 
Registered: Sep 2005
Location: Laurel, MD, USA
Distribution: Slackware 10.1, FC5
Posts: 164

Rep: Reputation: 30
Could you give an example of exactly what you type in the terminal and the program you're building? (try something simple like a hello world program)
 
Old 06-25-2006, 05:56 PM   #3
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 3,988

Rep: Reputation: 261Reputation: 261Reputation: 261
Also, conio.h is an MS-DOS/Windows header file. It won't work on Linux. The Linux equivalent is the ncurses library. Besides, in the program you give you don't need it anyway as you just call the standard library funtion.

As for your problem, cc1 should be provided by the standard gcc package. What happens if you type the command "locate cc1"?
 
Old 07-04-2006, 10:57 AM   #4
Pravab
Member
 
Registered: Apr 2006
Location: Dharan,Nepal
Distribution: FC5
Posts: 63

Rep: Reputation: 15
LINUX doesnot take "conio.h" header file : and the rest program seems fine

Also while compiling
$ cc -o hello.out hello.c

i think u dont need to type hello.out
$ gcc -o hello hello.c
$./hello
 
  


Reply

Tags
development, gnome, kde, programming


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
checking for C compiler default output... configure: error: C compiler cannot create fiorejm Linux - Software 6 11-12-2009 12:35 PM
problem with compiler ale_x_andru Linux - Newbie 2 03-06-2006 12:21 AM
c++ compiler problem evian Linux - General 4 10-30-2003 11:29 AM
C++ compiler problem? New 2 The Game Linux - Software 2 09-06-2003 01:09 AM
compiler problem athenerx Linux - Newbie 1 07-29-2002 06:52 PM


All times are GMT -5. The time now is 07:08 AM.

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