[libav-bugs] [Bug 864] vs2015 build issue: vnsprintf macro conflict with microsoft's libraries

bugzilla at libav.org bugzilla at libav.org
Fri Jun 5 20:05:28 CEST 2015


--- Comment #17 from ray <ray at oneunified.net> ---
Ok, I updated the internal.h file, ran make clean && make V=1.  

still had link errors.  do you want the same status files again?

libavdevice.a(vfwcap.o) : error LNK2001: unresolved external symbol
libavfilter.a(avfilter.o) : error LNK2001: unresolved external symbol
libavfilter.a(avfiltergraph.o) : error LNK2001: unresolved external symbol
avconv.exe : fatal error LNK1120: 2 unresolved externals
Makefile:153: recipe for target 'avconv.exe' failed

diff --git a/libavutil/internal.h b/libavutil/internal.h
index 800680a..5280493 100644
--- a/libavutil/internal.h
+++ b/libavutil/internal.h
@@ -130,7 +130,7 @@

 #include "libm.h"

-#if defined(_MSC_VER)
+#if defined(_MSC_VER) && _VC_CRT_MAJOR_VERSION < 14
 #pragma comment(linker, "/include:"EXTERN_PREFIX"avpriv_strtod")
 #pragma comment(linker, "/include:"EXTERN_PREFIX"avpriv_snprintf")
@@ -219,3 +219,4 @@ int avpriv_open(const char *filename, int flags, ...);
 int avpriv_set_systematic_pal2(uint32_t pal[256], enum AVPixelFormat pix_fmt);

 #endif /* AVUTIL_INTERNAL_H */

You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libav.org/pipermail/libav-bugs/attachments/20150605/1de9dfb4/attachment.html>

More information about the libav-bugs mailing list