On Thu, Sep 23, 1999 at 04:28:39PM +0530, Gurunandan R Bhat wrote:
>
>
> On 23 Sep 1999 [EMAIL PROTECTED] wrote:
>
> > Also while going through the source I came accross preprocessor
> > directives and things like __GNUC__, where do i get the docs for
> > these. I saw man gcc it is not there.
>
>
> Predefined symbols and preprocessor directives can be checked with passing
> options -v -E to gcc. For example -D__GNUC__=2 (the major version number)
> of gcc. Write a small Hello world! program and compile it with -v -E to
> see all predefined symbols.
>
There's one other trick:
$ /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/cpp -dM < /dev/null
#define linux 1
#define __i386__ 1
#define i386 1
#define __ELF__ 1
#define unix 1
-Arun
--------------------------------------------------------------------
For more information on Linux in India visit http://www.linux-india.org/
The Linux India mailing list does not accept postings in HTML format.