nullptr not declared in scope when compiling on mac
问题 I'm trying to use the "Yet Another PCInt Library" for enabling pin change interrupts on my Arduino mega 2560. In the Arduino IDE, the code compiles fine on windows, but fails on a mac. It gives an error code stating: nullptr not declared in this scope attachInterrupt(pin, (callback)func, nullptr, mode, trigger_now); ^ How can I get this to compile on OS X in the arduino IDE? 回答1: nullptr was introduced into the C++11 standard, and it does not exist in any earlier standards. My best guess is