Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8458271
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T13:01:56+00:00 2026-06-10T13:01:56+00:00

I have a WinRT application for Windows 8 that contains several C++ static libraries

  • 0

I have a WinRT application for Windows 8 that contains several C++ static libraries and one WinRT native static C++ library. It’s not linking because it’s complaining of multiply defined symbols related to the threading model libraries:

vccorlibd.lib(tmmta.obj) : error LNK2005: "int __abi___threading_model" (?__abi___threading_model@@3HA) already defined in vccorlibd.lib(tmdefault.obj)
fatal error LNK1169: one or more multiply defined symbols found

Note that it’s trying to link with the MTA threading model lib (tmmta) with the default treading model lib (tmdefault).

I can’t find any setting in the project properties to change this. Closest I’ve found is the CLR Thread Attribute but changing this setting has no effect. I don’t know which sub-project in my solution is using which threading model.

How and where can I see and change the threading model setting?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T13:01:57+00:00Added an answer on June 10, 2026 at 1:01 pm

    Here is the answer about your question. I had the same problem 🙂

    http://social.msdn.microsoft.com/Forums/en-US/winappswithnativecode/thread/f57406a6-3892-4981-86da-135862cf4b41?prof=required

    Edited:

    Probably this is caused because you have main() function or/and you define [Platform::MTAThread] ( witch create MTA symbol ) in your WinRT static library. Now the executable code don’t know how should be initialized because executable dont know anything about your declaration.

    You can move that main() function to your executable project or ( witch in my case works ) be sure that you #include header to object where you declare your main function, then linker could see it and would not duplicate symbol.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an application I'm writing for Windows 8/WinRT that uses the StreamSocket API
I have an application build with VS2008 SP1a (9.0.30729.4148) on Windows 7 x64 that
I have an application that checks to see if a user exists (if not
I currently have an issue with a file read in a Windows 8/WinRT application.
I have a WinRT Metro app (XAML/C#, Windows Release Preview) that manages documents. The
If not, then does WinRT have its own Garbage Collector? I ask this because
I have a javascript Windows Store application that I'm working on, and I needed
I have a windows phone 7 application that I would like to port to
I have a StackPanel in my WinRT C# Metro app that I want to
I have a program that still must target Windows XP (_WIN32_WINNT 0x501), as most

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.