andysworkshop / stm32plus

The C++ library for the STM32 F0, F100, F103, F107 and F4 microcontrollers
http://www.andybrown.me.uk
Other
745 stars 224 forks source link

strcasecmp template parameter issue #222

Closed mikepurvis closed 4 years ago

mikepurvis commented 4 years ago

Am getting this on an stm32plus::net firmware, when compiled with 7-2018-q2-6:

/usr/local/arm-none-eabi/include/stm32plus-040100/net/application/dns/Dns.h: In member function 'bool stm32plus::net::Dns<TTransportLayer>::dnsHostnameQuery(const char*, stm32plus::net::IpAddress&)':
/usr/local/arm-none-eabi/include/stm32plus-040100/net/application/dns/Dns.h:193:11: error: there are no arguments to 'strcasecmp' that depend on a template parameter, so a declaration of 'strcasecmp' must be available [-fpermissive]
       if(!strcasecmp(hostname,"localhost")) {
           ^~~~~~~~~~
/usr/local/arm-none-eabi/include/stm32plus-040100/net/application/dns/Dns.h:193:11: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)