Skip to content

Commit 2a574ba

Browse files
author
Colin Robertson
committed
minor enhancement.
1 parent fd37003 commit 2a574ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/porting/binary-compat-2015-2017.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "C++ binary compatibility between Visual Studio 2015, 2017, and 2019"
33
description: "Describes how binary compatibility works between compiled C++ files in Visual Studio 2015, 2017, and 2019. One Microsoft Visual C++ Redistributable package works for all three versions."
4-
ms.date: "11/07/2019"
4+
ms.date: "11/11/2019"
55
helpviewer_keywords: ["binary compatibility, Visual C++"]
66
ms.assetid: 591580f6-3181-4bbe-8ac3-f4fbaca949e6
77
---
@@ -11,7 +11,7 @@ The Microsoft C++ (MSVC) compiler toolsets in Visual Studio 2013 and earlier don
1111

1212
We've changed this behavior in Visual Studio 2015, 2017, and 2019. The runtime libraries and apps compiled by any of these versions of the compiler are binary-compatible. It's reflected in the C++ toolset major number, which is 14 for all three versions. (The toolset version is v140 for Visual Studio 2015, v141 for 2017, and v142 for 2019). Say you have third-party libraries built by Visual Studio 2015. You can still use them in an application built by Visual Studio 2017 or 2019. There's no need to recompile with a matching toolset. The latest version of the Microsoft Visual C++ Redistributable package (the Redistributable) works for all of them.
1313

14-
There's an exception to this rule: static libraries or object files compiled using the `/GL` compiler switch *aren't* binary-compatible.
14+
There's an exception to this rule: static libraries or object files compiled using the `/GL` compiler switch *aren't* binary-compatible across versions.
1515

1616
The Redistributable your app uses has an important binary-compatibility restriction. It applies when you mix binaries built with different supported versions of the toolset. The Redistributable version must be at least as new as the latest toolset used by any app component.
1717

0 commit comments

Comments
 (0)