Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 06-25-2006, 03:04 PM   #1
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

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 03:31 PM.
Old 06-25-2006, 03:17 PM   #2
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, 06:56 PM   #3
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
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, 11:57 AM   #4
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


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

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 01:35 PM
problem with compiler ale_x_andru Linux - Newbie 2 03-06-2006 01:21 AM
c++ compiler problem evian Linux - General 4 10-30-2003 12:29 PM
C++ compiler problem? New 2 The Game Linux - Software 2 09-06-2003 02:09 AM
compiler problem athenerx Linux - Newbie 1 07-29-2002 07:52 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:45 AM.

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