This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]