StandardCplusplus
StandardCplusplus copied to clipboard
Compile Issue on mac with Arduino 1.5.6-r2 software
Hello,
I get the following error when I try to compile your example string_vector on a mac with Arduino 1.5.6-r2 software. My hardware platform is a Digistump DigiX board. Any ideas?:
Arduino: 1.5.6-r2 (Mac OS X), Board: "Digistump DigiX (standard)"
In file included from /Applications/Arduino_1.5.6.app/Contents/Resources/Java/hardware/digistump/sam/libraries/StandardCplusplus/ostream:28,
from /Applications/Arduino_1.5.6.app/Contents/Resources/Java/hardware/digistump/sam/libraries/StandardCplusplus/istream:24,
from /Applications/Arduino_1.5.6.app/Contents/Resources/Java/hardware/digistump/sam/libraries/StandardCplusplus/serstream:19,
from string_vector.ino:2:
/Applications/Arduino_1.5.6.app/Contents/Resources/Java/hardware/digistump/sam/libraries/StandardCplusplus/ostream_helpers: In static member function 'static void std::_ostream_printout<traits, char, float>::printout(std::basic_ostream<char, traits>&, float)':
/Applications/Arduino_1.5.6.app/Contents/Resources/Java/hardware/digistump/sam/libraries/StandardCplusplus/ostream_helpers:250: error: there are no arguments to 'dtostrf' that depend on a template parameter, so a declaration of 'dtostrf' must be available
/Applications/Arduino_1.5.6.app/Contents/Resources/Java/hardware/digistump/sam/libraries/StandardCplusplus/ostream_helpers:250: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
string_vector.ino: At global scope:
string_vector:13: error: no matching function for call to 'std::basic_oserialstream<char, std::char_traits
This report would have more information with "Show verbose output during compilation" enabled in File > Preferences.
I'm having the same issue, did anyone ever figure this out?
I found the same thing when compiling under 1.6.4 for the Due, but it compiled OK for a Uno. It looks like dtostrf is not in the Due library. Perhaps compensate by having an #ifdef for that board?
Fixed now in 275638685ac333cd4b59caff7d4e6f46e849c22a