I'm using interrupts and using the signal.h include as that looks like a 
reasonably efficient way to dispatch interrupts from different sources - 
however I want the interrupt code in a different file, so in my main 
interrupt handling file I have:

(cut-down example)

    extern SIGHANDLER(rtcHandler) ;

    DEF_INTHIGH (high_int)
    DEF_HANDLER (SIG_TMR1, rtcHandler)
    END_DEF

and in a separate file:

    SIGHANDLER (rtcHandler)
    {
    ...etc
    }

it compiles fine, but the assembler doesn't like it:

interrupts.asm:883:Error [113] Symbol not previously defined (_rtcHandler).

If I put everything in the same file it works fine.

Is this a limitation of the compiler/assembler, or it just failing to 
output the neccessary extern references for an __interrupt function (which 
SIGHANDLER expands to), or am I missing something terribly obvious!

Thanks,

Gordon

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to