> thanks, this weird "extern" statement did the trick. I did not know > this syntax. > > But that's strange: > > For a SIGHANDLER that is defined in the SAME file, I have to forward > declare it using: SIGHANDLER(portb_isr); ; extern portb_isr fails with: > main.c:162: error 98: conflict with previous definition of 'portb_isr' > for attribute 'type' > from type 'int fixed' > to type 'void function ( ) fixed' > > for a SIGHANDLER that is defined in ANOTHER file, I have to extern > declare it using : extern i2c_slave_isr; extern > SIGHANDLER(i2c_slave_isr); fails with: > main.asm:247:Error [113] Symbol not previously defined (_i2c_slave_isr). > main.asm:247:Error [113] Symbol not previously defined (_i2c_slave_isr). > > The errors are different! > And the messages are even formatted differently :-)
Well, this is AFAIK, but the SIGHANDLER is a macro, not a C language construct. Your 'forward declaration' probly does something, but not what you want. Roel Adriaans ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user