PinChangeInt library- To attach interrupts to multiple Arduino (Uno/Mega) pins

MorgKrig:
hey,

I like to use the PINCHANGE Library with the Arduino DUE.
But I still get this failure:

In file included from FirstTask.ino:24:

.....\Arduino\libraries\PinChangeInt/PinChangeInt.h:103: fatal error: new.h: No such file or directory
compilation terminated.



Maybe some know this failure?

I need to use the pinchange lib because I need to know of many pins, which pin has changed without using for every pin a own function like this:


attachInterrupt(1, action1, HIGH);
attachInterrupt(2, action2, HIGH);




Maybe someone knows also an alternative solution :-)

Not sure why you would need that.
The attach interrupt doc at http://arduino.cc/en/Reference/AttachInterrupt clearly states:

The Arduino Due board has powerful interrupt capabilities that allows you to attach an interrupt function on all available pins. You can directly specify the pin number in attachInterrupt().

The overhead of creating a function for each pin is probably nothing compared to linking and porting the pinchangeint lib.
Not that I would care about the size of the program or data when writing code for the due.
Best regards
Jantje