I met an link error when build a project with .c and .S files
   the c file  like this:
         ...
         volatile unsigned char     sched_mode;
         ...


   the assembly  file like this:
         .extern    sched_mode
         ...
         LDS R18, sched_mode
         ...


   when I build the project. the link error about the assembly file output:

    (.text+0x32): undefined reference to `sched_mode'


    Any reply is welcome! Thanks!

-- 
Sincerely yours,
Shilin Yu
_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Reply via email to