CorDllMain unresolved linker error

  • Thread starter Thread starter Drew
  • Start date Start date
D

Drew

I moved some of my mixed mode code into a new mixed mode DLL. I've
read over the KB article a million times in the last year so I'm
familar with the settings. However I get this error in the new DLL.
Anyone know where CorDllMain is defined?

LINK : error LNK2001: unresolved external symbol __CorDllMain@12
Debug\ServerUtility.dll : fatal error LNK1120: 1 unresolved externals
 
Hi Drew,

Thanks for posting in the group!

I guess you have probably read the article of KB 814472:
http://support.microsoft.com/?id=814472

From my point of view, your problem maybe caused by the unresolved external
symbol __CorDllMain reside in the msvcprt.lib file, however his file was
not included in the link.

You can try linking to msvcprt.lib in addition to the other changes
discussed in KB 814472, it will allow you to cleanly compile and link the
application.


Wish it helpful!

Best regards,
Gary Chang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
 
Back
Top