Re: C99 IDE for windows



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].
.



Relevant Pages

  • Re: how to install ruby in home folder ?.
    ... i am using linux ubuntu 7.04. ... configure:1892: checking build system type ... configure:2245: checking for gcc ... configure:2563: checking for C compiler default output file name ...
    (comp.lang.ruby)
  • Re: Netscape 7 issues.
    ... noone gives a damn about portability and bloat. ... There is certainly a culture amoungst Linux users that if it works on ... A Dec Alpha running Tru64 - using HP's compiler. ... Finding this bug on AIX, while not on the above 11 systems, was ...
    (comp.sys.sun.admin)
  • Re: Use of C99 int types
    ... > those that actually are part of the C-implementation for Linux. ... the kernel definitions are part of /usr/include). ... The kernel uses __foobar stuff provided by the compiler because it has ... > the Gimp and GCC run on completely different architectures aswell. ...
    (Linux-Kernel)
  • Re: function pointers
    ... I am using gcc under ... gdb, and the compiler, exactly like in 1986 when I first started using ... when running on linux, I usually use gedit or kedit. ... There is only one debugger: ...
    (comp.lang.c)
  • Re: 1] UNIX/LINUX Compilation 2] IDE
    ... under Unix or Linux? ... compiler, and Josh Vanderhoof's Cross ELF linker. ... AFAICT, RHIDE is the only ... VIM is in some ways as good as GNU Emacs ...
    (comp.os.msdos.djgpp)