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
 
Back
Top