locked
Porting Static C Library into Metro App - 'MSB8024: Using static version of the C++ runtime library is not supported'

    Question

  • Hi, all.

    I got this error when porting a C static library (lib) into a Windows 8 Metro App.

    >C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppBuild.targets(1572,5): error MSB8024: Using static version of the C++ runtime library is not supported.

    Both 'Metro Style App Support' and 'Consume Windows Runtime Extension' options are set 'true'.

    How can I resolve this problem?

    Monday, June 25, 2012 2:19 PM

Answers

  • Compiler option use /MD or /MDd

    C++ DX11

    • Proposed as answer by Jesse Jiang Tuesday, June 26, 2012 6:29 AM
    • Marked as answer by Jesse Jiang Wednesday, July 04, 2012 7:21 AM
    Monday, June 25, 2012 3:03 PM

All replies

  • Compiler option use /MD or /MDd

    C++ DX11

    • Proposed as answer by Jesse Jiang Tuesday, June 26, 2012 6:29 AM
    • Marked as answer by Jesse Jiang Wednesday, July 04, 2012 7:21 AM
    Monday, June 25, 2012 3:03 PM
  • Anyone having problem in finding "which compiler option" Raptor K was talking about, you are looking for Runtime Library. Which you can navigate like:

    Project Properties > Configuration Properties > C/C++ > Code Generation > Runtime Library


    - a citizen of Microsoft Developer Network.

    Sunday, December 16, 2012 4:25 PM
  • Anyone having problem in finding "which compiler option" Raptor K was talking about, you are looking for Runtime Library. Which you can navigate like:

    Project Properties > Configuration Properties > C/C++ > Code Generation > Runtime Library


    - a citizen of Microsoft Developer Network.

    Sunday, December 16, 2012 4:25 PM