Re: compiling a simple program



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

"khurana77" <rkhurana@xxxxxxxxx> writes:

> sys/signal.h file is in /usr/include/sys/include
>
> By defaukt compiler looks into /usr/include.
>
> Try giving the path of sys/signal.h using -I option in gcc

This is offtopic, but also incorrect. The correct include is
<signal.h> (see SUSv3).


- --
Roger Leigh
Printing on GNU/Linux? http://gimp-print.sourceforge.net/
Debian GNU/Linux http://www.debian.org/
GPG Public Key: 0x25BFB848. Please sign and encrypt your mail.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>

iD8DBQFCnFEEVcFcaSW/uEgRAsAqAKCQOJtK+ftnBofU91u/jKbvdbTGxwCg5I6G
2YV/KZOBKipoiumKo+2pnT4=
=5XiC
-----END PGP SIGNATURE-----
.



Relevant Pages

  • Re: mplayer gcc issue
    ... nikoli wrote: ... > Kevin Nathan wrote: ... PATH - i.e. which 'gcc' will be used by default. ... the incorrect version of the C libs installed - incorrect ...
    (alt.os.linux.suse)
  • Re: Compiling FreeBSD 4.10 kernel with gcc native and gcc-3.4.3
    ... KK> Actually, all the responses I've seen so far have been incorrect, or ... KK> haven't mentioned the real reason. ... FreeBSD 4.10 is using gcc 2.95 ... I use gcc, don't track it, have few packages ...
    (freebsd-questions)
  • Re: Is this a Standard Portable C Program?
    ... #define P int main\ ... I think it is because Microsoft and gcc say so! ... Other than that, I see nothing incorrect about it -- silly, yes, ...
    (comp.lang.c)
  • Re: C to C++ conversion help
    ... Josh Sebastian wrote: ... > Your code gave the incorrect result you described; ... > to double gave the correct result, at least on GCC 3.3. ... Elliot ...
    (comp.programming)