cancel
Showing results for 
Search instead for 
Did you mean: 

unable to include <string.h>

jerry_sandc
Associate III

So most all of code is building, then I went to add usage of strtok, which requires string.h.

Unfortunately I get this really odd error.  Its claiming strncasecmp is redefined.  

 

In file included from C:\ST\STM32CubeIDE_1.13.1\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.0.202305231506\tools\bin\../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/include/string.h:24,
from C:/Users/jerry.morrow/git/mcu_6800_ACS-1173/diag/src/i2c_gen_cmd.c:15:
C:\ST\STM32CubeIDE_1.13.1\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.0.202305231506\tools\bin\../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/include/strings.h:68:10: error: conflicting types for 'strncasecmp'; have 'int(const char *, const char *, size_t)' {aka 'int(const char *, const char *, unsigned int)'}
68 | int strncasecmp(const char *, const char *, size_t) __pure;
| ^~~~~~~~~~~

 

1 REPLY 1
jerry_sandc
Associate III

please ignore post, i don't know how to remove from board