I am putting together a software prototype to test my Notecard. I have found it easier to build prototypes on MSVC because my embedded platform tends to be Atmel Studio. Thus I avoid the horrors of Arduino and having to burn code into a board to get started.
The note-c-master library appear written for gcc, which has attribute((weak)) // underscore underscore attribute underscore underscore ((weak))
(see in n_str.c used twice)
Microsoft C doesn’t support attribute((weak)). It seems the equivalent is
Indeed, I verified that that path is taken by the compiler but the problem remains. No rush: I can apparently get things to compile so I’ll be able to step through, etc.
edit this is what I did #if defined(_MSC_VER)
size_t strlcat(char* dst, const char* src, size_t siz) #else attribute((weak)) size_t strlcat(char* dst, const char* src, size_t siz) #endif
Since the issue is the use of the Microsoft compiler, not the Windows OS