WinRT: detailed steps, via the WinRT README, to fix a common build error
authorDavid Ludwig <dludwig@pobox.com>
Mon, 27 Oct 2014 19:53:44 -0400
changeset 9200 bfdc18891a60
parent 9199 9418826f6341
child 9201 21d9f9babb30
child 9521 4c218c80b34d
WinRT: detailed steps, via the WinRT README, to fix a common build error
docs/README-winrt.md
--- a/docs/README-winrt.md	Mon Oct 27 12:53:47 2014 +0100
+++ b/docs/README-winrt.md	Mon Oct 27 19:53:44 2014 -0400
@@ -337,6 +337,25 @@
    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
 ----