Go Down

Topic: Doesn't work (Read 6991 times) previous topic - next topic



I have followed the instructions there: https://github.com/ms-iot/virtual-shields-arduino

But when trying any example, such as 'HelloWorld', I always get the same error:

In file included from C:\Users\Cedric\Documents\Arduino\libraries\VirtualShield\src\Media.cpp:25:0:

C:\Users\Cedric\Documents\Arduino\libraries\VirtualShield\src\Media.h: In member function 'int Media::playVideo(const char*, long int)':

C:\Users\Cedric\Documents\Arduino\libraries\VirtualShield\src\Media.h:47:57: error: 'snprintf' was not declared in this scope

         snprintf(full_url, full_length, "VIDEOS:%s", url);


exit status 1
Error compiling.

Anybody knows what I can try ?



Commenting out the offending references to snprintf in Media.h and Recognition.cpp, I now get the error

C:\Users\Cedric\Documents\Arduino\libraries\virtual-shields-arduino\src\VirtualShield.cpp: In member function 'int VirtualShield::sendFlashStringOnSerial(const char*, int, bool) const':

C:\Users\Cedric\Documents\Arduino\libraries\virtual-shields-arduino\src\VirtualShield.cpp:853:74: error: 'strlen_PF' was not declared in this scope

 for (size_t i = actualStart; i < strlen_PF(uint_farptr_t(flashStringAdr)); i++)

My oh my

Go Up