I'm trying to deploy an application that uses ffmpeg to stream camera output to an XP machine. The application is written compiled with gcc mingw32 and runs fine on Windows 8. But on Windows XP I get the following error:
The procedure entry point strncpy_s could not be located in the
dynamic link library msvcrt.dll
GCC command, excluding paths:
g++ -o mingw\streamer.exe src\testffmpeg.o -lavformat -lavutil -lavcodec -lFlyCapture2_C_v100
Dependency walker shows the following:

How can I work around this strncpy_s problem? It seems to be ffmpeg which uses this function is msvcrt. I used the windows binaries they provided. I'd rather not have to compile the library myself, as it has a huge set of dependencies.
Although not a generic solution, I solved this issue be using an older version of ffmpeg. The following release is the newest that does not require strncpy_s in msvcr.dll
As discussed in this forum thread
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With