From 2dbe33ce838852fb5e16449b21cf438e7e1f2027 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 14 Dec 2019 16:05:54 +0100 Subject: DOCS: mention that mpv doesn't build with MSVC And troll Microsoft slightly while we're at it. But is it trolling if it's the truth? The level of C99 support in MSVC is probably a bit better than most people think, but it's by far not adequate. We need a bit of either C11 or GNU extensions too, and rely on some MinGW helpers (that look like they're provided by MS, except they're not). --- DOCS/compile-windows.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'DOCS') diff --git a/DOCS/compile-windows.md b/DOCS/compile-windows.md index fcf1be7e70..174a882316 100644 --- a/DOCS/compile-windows.md +++ b/DOCS/compile-windows.md @@ -168,8 +168,12 @@ Or, compile and install both libmpv and mpv: Linking libmpv with MSVC programs --------------------------------- -You can build C++ programs in Visual Studio and link them with libmpv. To do -this, you need a Visual Studio which supports ``stdint.h`` (recent ones do), +mpv/libmpv cannot be built with Visual Studio (Microsoft is too incompetent to +support C99/C11 properly and/or hates open source and Linux too much to +seriously do it). But you can build C++ programs in Visual Studio and link them +with a libmpv built with MinGW. + +To do this, you need a Visual Studio which supports ``stdint.h`` (recent ones do), and you need to create a import library for the mpv DLL: ```bash -- cgit v1.2.3