On Wed, Mar 9, 2011 at 03:32, Dock, Dion <firstname.lastname@example.org>
I'm back to my original question: can I use MinGW64 with source that has functions like strnlen_s?
It sounds like the answer is: I can compile code with those functions in a DLL with a manifest for msvcr80 (or 90 or 100) or statically link the runtime into that DLL. However, I cannot compile code with those functions using MinGW64.
Or to put it another way, how would you get this to compile with MinGW64?
printf("%d\n", strnlen_s("foo", 2)); /* expect 2 */
Here's what I get:
C:\Users\dockd\AppData\Local\Temp\ccKqFt47.o:main.c:(.text+0x1e): undefined reference to `strnlen_s'
collect2: ld returned 1 exit status