I am using mingw-w64. I turn on strsafe.h and get the following warning:
warning: inline function 'HRESULT StringCchPrintfA(STRSAFE_LPSTR, size_t, STRS AFE_LPCSTR, ...)' used but never defined [enabled by default]
The only flag flags I used are -Wall -DDEBUG -g . I know that you need to define inline functions in one header, and I looked at strsafe.h and I clearly see that StringCchPrintfA in the header, so I donβt know why it gave me this error. In addition, here is a link to strsafe.h if you want to see the title yourself .
Edit:
I found the following snippet on the Internet (if anyone can provide further information, please let me know what you are trying to say in the comment?):
// Work around lack of strsafe library in mingw-w64, do let their // strsafe.h provide inlines of StringCchVPrintfA etc, avoid linking // errors in a debug build.
source share