LINK : error LNK2001: unresolved external symbol __DllMainCRTStartup@12
-
I have ported a DLL project from VC6 -> VS2010. It gives the following link error. LINK : error LNK2001: unresolved external symbol __DllMainCRTStartup@12 How to resolve this error?
are you linking to the MS C runtime libs? http://msdn.microsoft.com/en-us/library/988ye33t%28v=vs.80%29.aspx[^]
-
I have ported a DLL project from VC6 -> VS2010. It gives the following link error. LINK : error LNK2001: unresolved external symbol __DllMainCRTStartup@12 How to resolve this error?
KASR1 wrote:
How to resolve this error?
See here. It almost sounds like a Unicode issue. Do you have
UNICODE
and/or_UNICODE
defined?"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
-
KASR1 wrote:
How to resolve this error?
See here. It almost sounds like a Unicode issue. Do you have
UNICODE
and/or_UNICODE
defined?"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
-
are you linking to the MS C runtime libs? http://msdn.microsoft.com/en-us/library/988ye33t%28v=vs.80%29.aspx[^]
-
so, check your vs2010 settings. confirm that it's linking with the MS runtimes.
-
so, check your vs2010 settings. confirm that it's linking with the MS runtimes.
-
I have ported a DLL project from VC6 -> VS2010. It gives the following link error. LINK : error LNK2001: unresolved external symbol __DllMainCRTStartup@12 How to resolve this error?
It wasn't Unicode, was it? Well I'm betting it is now. Sounds wrong entry point for a Unicode app.
Steve