On Apr 22, 2006, at 10:17 AM, Steve Franks wrote:
I get the following warning: main.cpp:92: warning: `_Z16__vector_defaultv' appears to be a misspelled signal handler When I try to compile: ISR(__vector_default) { puts("\nUI"); } On a Mega168. I changed "SIGNAL" to "ISR", and changed #include "avr/signal.h" to "avr/interrupt.h"Are you doing extern "C" { #include <avr/interrupt.h> } for the include? -- Ned Konz [EMAIL PROTECTED]Ah, Ned, you nailed it, almost. "extern C" around the include is not thesolution, but putting it around the ISR is! See below: extern "C" { ISR(__vector_default) { puts("\nUI"); } } Is this the type of thing that one should do a avr-libc bug entry for? Obviously not alot of C++ hackers out there.
I believe that Joerg already fixed this in avr-libc 1.4.4 ; I think there will be a new WinAVR using that version of avr-libc soon.
-- Ned Konz [EMAIL PROTECTED] _______________________________________________ AVR-libc-dev mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/avr-libc-dev
