Thanks in advance for the help.
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
__declspec(selectany) //underscore underscore declspec
Changing the code to __declspec(selectany) removes most of the errors but results in 2 errors
Error C2496 ‘strlcpy’: ‘selectany’ can only be applied to data items with external linkage
However, simply removing attribute((weak)) allows the code to compile.
The problem is I have no idea what attribute((weak)) does so I don’t know whether this will cause a problem down the line.
This is obviously not urgent but since I am not the only person who uses MSVC it might be worth addressing.