Error when using .include directive in Gnu Assembler!

Cliff Tsai clifftsai@minecard.com.tw
Wed Mar 21 22:05:00 GMT 2001


Hi Nick:
I'm using cross tool under cygwin.
I've tried the method you said(actually I've seen 
the method in GNUPro PDF Doc)
But when I change the extension from .s to .S.
It does't work under cygwin.
My guess is cygwin use Win32API.
And Win32API treet .S the same as .s
I'm keeping trying.

Any way,thank you,Nick!

----- Original Message ----- 
From: "Nick Clifton" <nickc@redhat.com>
To: "Cliff Tsai" <clifftsai@minecard.com.tw>
Cc: <binutils@sources.redhat.com>
Sent: Wednesday, March 21, 2001 12:06 PM
Subject: Re: Error when using .include directive in Gnu Assembler!


> Hi Cliff,
> 
> >    I've try to use following codes in assembly.
> >     abc.h:
> >         #define     a    0x1
> >         #define     b    0x2
> >         #define     c    0x3
> > 
> >     test.s:
> >     
> >         #include "abc.h"
> 
> Try calling your assembler source file 'test.S', ie with a capital S
> as the extension.  GCC passes .S files through the C preprocessor
> first, but it passes .s files directly to the assembler and the
> assembler ignores (most) lines starting with a hash.
> 
> Cheers
>         Nick
> 
> 




More information about the Binutils mailing list