{"id":5046,"date":"2014-03-30T18:22:21","date_gmt":"2014-03-30T18:22:21","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/strncpy_s-error-when-deploying-ffmpeg-streaming-application-on-xp-collection-of-common-programming-errors\/"},"modified":"2014-03-30T18:22:21","modified_gmt":"2014-03-30T18:22:21","slug":"strncpy_s-error-when-deploying-ffmpeg-streaming-application-on-xp-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/strncpy_s-error-when-deploying-ffmpeg-streaming-application-on-xp-collection-of-common-programming-errors\/","title":{"rendered":"strncpy_s error when deploying ffmpeg streaming application on XP-Collection of common programming errors"},"content":{"rendered":"<p>I&#8217;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:<\/p>\n<pre><code>The procedure entry point strncpy_s could not be located in the \ndynamic link library msvcrt.dll\n<\/code><\/pre>\n<p>GCC command, excluding paths:<\/p>\n<pre><code>g++ -o mingw\\streamer.exe src\\testffmpeg.o -lavformat -lavutil -lavcodec -lFlyCapture2_C_v100\n<\/code><\/pre>\n<p>Dependency walker shows the following: <img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/L2ZTN.png\" \/><\/p>\n<p>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&#8217;d rather not have to compile the library myself, as it has a huge set of dependencies.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5046","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5046","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=5046"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5046\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5046"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5046"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5046"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}