LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-11-2003, 02:50 PM   #1
chrismiceli
Member
 
Registered: Aug 2002
Posts: 349

Rep: Reputation: 31
C compiler cannot create executables


I am trying to configure lame, but this line stops the operation

checking for C compiler default output... configure: error: C compiler cannot create executables

so I tried to compile my own program

#include <stdio.h>

void main() {
printf("test\n");
}

and I get this error as i compile with this line

gcc -o test test.c

error:
<command line>:1:9: warning: "cpu" re-asserted
<command line>:1:13: warning: "machine" re-asserted
cpp: -lang-c: linker input file unused because linking not done
gcc: installation problem, cannot exec `cc1': No such file or directory


how can I fix this?
 
Old 05-11-2003, 03:12 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Looks like your gcc isn't installed/setup properly.
Consider reinstalling it... what distro are you on?

Cheers,
Tink
 
Old 05-11-2003, 03:21 PM   #3
chrismiceli
Member
 
Registered: Aug 2002
Posts: 349

Original Poster
Rep: Reputation: 31
redhat 9, it used to work because i compiled xmms, gimp, and a whole lot of other programs, something mush have happened to it.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
C++ compiler cannot create executables eomerek Linux - Newbie 28 12-13-2010 09:14 AM
C compiler cannot create executables packets Linux - Security 3 05-03-2010 05:30 PM
C++ compiler cannot create executables notmatt Linux - Newbie 4 09-30-2004 07:59 AM
C compiler cannot create executables w0lv3rin3 Linux - Software 4 08-07-2004 10:44 AM
C compiler cannot create executables londonboi Debian 2 09-23-2003 02:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:32 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration