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]

Error when using .include directive in Gnu Assembler!


Hi:
    I'm trying .macro  
 
   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"
        .
        .
        .
        
        But when linking error occurs:
            undefined reference to 'a'
            undefined reference to 'b'
            undefined reference to 'c'
             
        Thanks!
 
   

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