Link error migrating to .NET

  • Thread starter Thread starter Dave Cullen
  • Start date Start date
D

Dave Cullen

I have a VC6 project that I'm trying to migrate to VC.NET and it's
driving me nuts.

Link error LNK2005, operator delete already defined in nafxcwd.lib

The project links OK in Release build, but not in Debug. I've looked at
the project settings and for the life of me can't see any differences
other than the obvious output file specs.

I have read the KB article 148652 that deals with runtime libs being
linked before MFC libs and it hasn't helped. The project builds fine in
VC6. Every .cpp has #include "StdAfx.h".

Can anybody offer a solution?

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top