andysworkshop / stm32plus

The C++ library for the STM32 F0, F100, F103, F107 and F4 microcontrollers

Home Page:http://www.andybrown.me.uk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

strcasecmp template parameter issue

mikepurvis opened this issue · comments

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)