Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
02-01-2010, 03:02 PM
|
#1
|
|
LQ Newbie
Registered: Feb 2010
Posts: 1
Rep:
|
GCC errors with common flags aka -g, -ansi, -Wall
I have the latest GCC + Build Essentials package installed, and verified that gcc -v does output. Also, I have done essentially the same installation on two computers. On one, gcc works fine. On the other, any flags added to gcc command is producing errors:
Useless example w/ no reported errors: gcc test.c
gcc test.c -g -Wall -o test
-g: No file or directory found
-Wall: No file or directory found
(etc.)
I've tried several things and searched the forums and can't seem to find something specific to this error. Thanks.
PS, I'm sure that my simple hello world program is only C code and compilable since it operates fine on the other machine.
|
|
|
|
02-01-2010, 05:02 PM
|
#2
|
|
Member
Registered: Jan 2009
Location: Gemini Capsule 25164
Distribution: Gentoo
Posts: 375
Rep:
|
Quote:
Originally Posted by txjenniek
I have the latest GCC + Build Essentials package installed, and verified that gcc -v does output. Also, I have done essentially the same installation on two computers. On one, gcc works fine. On the other, any flags added to gcc command is producing errors:
Useless example w/ no reported errors: gcc test.c
gcc test.c -g -Wall -o test
-g: No file or directory found
-Wall: No file or directory found
(etc.)
I've tried several things and searched the forums and can't seem to find something specific to this error. Thanks.
PS, I'm sure that my simple hello world program is only C code and compilable since it operates fine on the other machine.
|
That's weird. I always thought it didn't matter whether the options came before or after the infiles. Can you put test.c at the end of the command, and see if that works?
BTW: What kind of system are you on? (Linux distro version?) What version of gcc is it?
|
|
|
|
02-01-2010, 05:30 PM
|
#3
|
|
Senior Member
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,300
Rep: 
|
Quote:
Originally Posted by txjenniek
gcc test.c -g -Wall -o test
-g: No file or directory found
-Wall: No file or directory found
|
What is the output of "ls -al $(which -a gcc)" on the system that reports these errors?
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 10:45 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|