From f2bd99da68a0c8597c650b672b82afff33e1226b Mon Sep 17 00:00:00 2001 From: David Ludwig Date: Mon, 27 Oct 2014 19:53:44 -0400 Subject: [PATCH] WinRT: detailed steps, via the WinRT README, to fix a common build error --- docs/README-winrt.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/docs/README-winrt.md b/docs/README-winrt.md index a5ea78b62..b1f53809b 100644 --- a/docs/README-winrt.md +++ b/docs/README-winrt.md @@ -337,6 +337,25 @@ To setup Visual C++ to launch your app on an ARM device: C++. +Troubleshooting +--------------- + +#### Build fails with message, "error LNK2038: mismatch detected for 'vccorlib_lib_should_be_specified_before_msvcrt_lib_to_linker'" + +Try adding the following to your linker flags. In MSVC, this can be done by +right-clicking on the app project, navigating to Configuration Properties -> +Linker -> Command Line, then adding them to the Additional Options +section. + +* For Release builds / MSVC-Configurations, add: + + /nodefaultlib:vccorlib /nodefaultlib:msvcrt vccorlib.lib msvcrt.lib + +* For Debug builds / MSVC-Configurations, add: + + /nodefaultlib:vccorlibd /nodefaultlib:msvcrtd vccorlibd.lib msvcrtd.lib + + TODO ----