ArduinoDES icon indicating copy to clipboard operation
ArduinoDES copied to clipboard

Unable to build for RedBearLabs BLE Nano

Open luposlip opened this issue 10 years ago • 0 comments

Hi there!

I get this error while trying to build for BLE Nano:

/Users/luposlip/Dropbox/ArduinoWS/2015/libraries/DES/DES.cpp: In member function 'void DES::tdesCbcEncipher(byte*, byte*)':
/Users/luposlip/Dropbox/ArduinoWS/2015/libraries/DES/DES.cpp:478:21: error: 'printf_P' was not declared in this scope
  printf_P(PSTR("\n"));
                     ^
/Users/luposlip/Dropbox/ArduinoWS/2015/libraries/DES/DES.cpp: In member function 'void DES::tdesCbcDecipher(byte*, byte*)':
/Users/luposlip/Dropbox/ArduinoWS/2015/libraries/DES/DES.cpp:511:21: error: 'printf_P' was not declared in this scope
  printf_P(PSTR("\n"));
                     ^
libraries/DES/DES.cpp: In member function 'void DES::printArray(byte*, bool)':
libraries/DES/DES.cpp:549:40: error: 'printf_P' was not declared in this scope
     printf_P(PSTR("%c"),output[j*8 + i]);
                                        ^
libraries/DES/DES.cpp:552:22: error: 'printf_P' was not declared in this scope
   printf_P(PSTR("\n"));
                      ^
libraries/DES/DES.cpp: In member function 'void DES::printArray(byte*, int)':
libraries/DES/DES.cpp:561:34: error: 'printf_P' was not declared in this scope
     printf_P(PSTR("%x"),output[i]);
                                  ^
libraries/DES/DES.cpp:563:22: error: 'printf_P' was not declared in this scope
   printf_P(PSTR("\n"));
                      ^
Error compiling.

I'm trying to compile the simple DES example: https://github.com/Octoate/ArduinoDES/tree/master/examples/DESexample

Any ideas?

Best, Henrik

luposlip avatar Jun 02 '15 14:06 luposlip