LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 06-19-2019, 01:32 PM   #1
AbdulHaseeb02
LQ Newbie
 
Registered: Jun 2019
Posts: 1

Rep: Reputation: Disabled
Help Needed...!!!


gcc: error: -E or -x required when input is from standard input

This error message is showing when i try to compile my .c code. Can anyone guide me what`s the problem or where the problem is ? What can be the possible causes of this error?
 
Old 06-19-2019, 01:35 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by AbdulHaseeb02 View Post
gcc: error: -E or -x required when input is from standard input

This error message is showing when i try to compile my .c code. Can anyone guide me what`s the problem or where the problem is ? What can be the possible causes of this error?
What do you think we're going to be able to tell you, given what you posted? You've provided NO DETAILS at all (version/distro of Linux? Where you got the code? What you've done/tried already?), and just given us a vague error message.

Short answer: Try doing what the message says and giving it a -E or -x
Longer answer: Provide details and debug your code/makefile.
 
Old 06-19-2019, 01:46 PM   #3
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Hi AbdulHaseeb02,

And welcome to LQ.

Some additional background about how you got to this point will be helpful to understand how best to aid you.

Meanwhile the title of your question is not the best choice. If you can edit your first post and when you do, you'll be able to change the title of the thread. Perhaps make it something more indicating what a summary of your question is will be helpful. CORRECTION: I believe you need to use the Thread Tools pulldown menu and it may allow you to edit the thread, or the thread title from there. Sorry, I myself do not start a lot of threads.

If you have further questions, please see the link in my signature about How to use the LinuxQuestions site.

Last edited by rtmistler; 06-19-2019 at 01:49 PM.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help needed: Apache help darkphaux Linux - Server 2 12-08-2008 04:59 PM
Help needed for make file problem : make: *** No rule to make target `flash', needed rameshsatyavaram Linux - Newbie 3 09-11-2008 02:13 AM
help needed with segmentation fault tried solving a lot please help kunalghosh Programming 3 05-31-2008 02:44 PM
XGL needed for Beryl is conflicting with OpenGL needed for Cedega chunkeydelight Linux - Desktop 2 07-18-2007 05:50 AM
Errors installing Q, which is needed for Lex, which is needed for PHP Virtuality Linux - Software 1 05-29-2007 04:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:13 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