Hello,
I am porting a old application to new windows universal application (Windows phone and metro style windows app). In my old code structure I have an application and a core library. The core library has the the main entry point which initialize the application
and windowing system. The application has a application class that in inherited from application base class (which is in core library).
I am trying to create similar structure while putting the new universal application code, keeping the
[Platform::MTAThread]
int main(Platform::Array<Platform::String^>^)
{
}
in the static library.
However, I am getting following two linking errors:
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
I tried to search in the forum, but it looks like there are only one relevant and which was not clear to me!
Now can anyone suggest any stable procedure by which I can have this kind of code structure in place?
Here goes my current code structure:
CoreLib
|- BaseApplication
|- Application::BaseApplication
|-Main.cpp (This file has the entry point)
Application
|- MyApplication::Application
Thanks in advance.