Re: help a beginner : code not working
- From: "bpascal123@xxxxxxxxxxxxxx" <bpascal123@xxxxxxxxxxxxxx>
- Date: Wed, 22 Jul 2009 09:13:45 -0700 (PDT)
You need to turn up warnings and run the result only when you either
get no messages at all or when you understand that the message is
genuinely simply some advice.
One question : under gcc, can i get more meaningfull error message?
What would be the command ? :
gcc parlst3L.c -o -w -pedantic parlst3LGcc return "parlst3L : No such file or directory
(you meant to write: 'gcc parlst3L.c -o parlst3L -w -pedantic' -- the
output file name goes after the -o)
I'd use:
gcc -std=c89 -pedantic -Wall -Wextra
There are a bunch of other helpful warnings you can turn on. I almost
always use:
-Wstrict-prototypes -Wbad-function-cast -Wcast-qual -Wshadow -Wundef
-Wconversion -Wwrite-strings
as well. (This last one makes gcc non-conforming is very subtle cases
but it useful enough that I don't care.)
<<<< Thanks
It is a minor point, but using odd layout discourages experienced
people from reading the code. It just looks too messy. At least,
that is my first reaction to it. You can be a clever maverick in your
algorithms, but you should be conforming sheep in your layout.
<<<< OOps, Read it after my last posting
--
Ben.
.
- References:
- help a beginner : code not working
- From: bpascal123@xxxxxxxxxxxxxx
- Re: help a beginner : code not working
- From: bartc
- Re: help a beginner : code not working
- From: Keith Thompson
- Re: help a beginner : code not working
- From: bpascal123@xxxxxxxxxxxxxx
- Re: help a beginner : code not working
- From: Ben Bacarisse
- help a beginner : code not working
- Prev by Date: ✚╰☆╮✚ WOW!! Pretty Accessories Bracelet,Earrings,Necklace,Rings---Chanel,Coach,D&G,Dior,Pandora,Tiffany,Juicy---All Wholesale On Site www.guomeitrade.com Exempt Freight Free Shipping
- Next by Date: Re: MasterM - a Curses interfaces Master Mind game
- Previous by thread: Re: help a beginner : code not working
- Next by thread: Re: help a beginner : code not working
- Index(es):
Relevant Pages
|
Loading