Re: C99 IDE for windows
- From: Harald van Dijk <truedfx@xxxxxxxxx>
- Date: Mon, 04 Aug 2008 21:23:09 +0200
On Mon, 04 Aug 2008 17:47:38 +0530, santosh wrote:
arnuld wrote:
I write network programs and yes I uses Sockets all the time. I mainly
use it because of 3 reasons:
1.) // style comments
2.) for( int i = 0; ... ) , to keep i localized to the loop
3.) snprintf (replacement for sprintf)
Regarding portability, I am focused on Linux only. I don't work on any
other OS. So, Do you guys advise to use -std=c99 as compiler option ?
If you focused only on Linux you might as well take advantage of gcc
specific,
To both arnuld and santosh: please don't assume that everyone on Linux
uses gcc. At the very least, there's Intel's compiler, but there are other
useful compilers as well.
Linux specific and POSIX extensions.
Fair enough.
For gcc use '-std=gnu99'.
I would recommend sticking with -std=c99. Even if you want to make use of
GNU-specific features, you can use -std=c99; you'll usually just need to
either deal with warnings or clearly mark your use of extensions. This, in
my opinion, is a good thing.
It might still be useful to keep portable and non-portable functionality
separate, in case you ever change your mind.
Well, we had similar ideas apparently, but different methods.
Look-up the "feature test macros" functionality of GNU libc. The POSIX.
documentation is also freely available online. For more details go to
comp.unix.programmer and comp.os.linux.development.[apps/system].
- Follow-Ups:
- Re: C99 IDE for windows
- From: arnuld
- Re: C99 IDE for windows
- References:
- Re: C99 IDE for windows
- From: arnuld
- Re: C99 IDE for windows
- From: santosh
- Re: C99 IDE for windows
- Prev by Date: Re: stream io in c
- Next by Date: Re: which functions set the end-of-file indicator?
- Previous by thread: Re: C99 IDE for windows
- Next by thread: Re: C99 IDE for windows
- Index(es):
Relevant Pages
|