Jump to content
  • Advertisement
Sign in to follow this  
mmsinclair

tmainCRTStartup link problems in VS2005

This topic is 4161 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi there I was wondering if anyone could help me with a linking problem I am having with Visual Studio 2005. I want to link a static lib file to a CLR DLL (managed C++). I have built Crypto++ v5.4 as a static library and I have a managed wrapper class in a DLL. The linker error I get is: LIBCMTD.lib(crt0.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup How do I define this function or do I need to set an alternative DLL entry point? I suspect some of the problem might be that the Crypto++ lib file is built with non-Unicode libraries and the managed classes DLL uses Unicode by default. If this is the case, how do I force the non-Unicode CRT to initialize? Many thanks Mark

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!