473,507 Members | 2,443 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Link error migrating to .NET

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
Nov 16 '05 #1
2 1156
http://groups.google.com/groups?&q=L...languages.vc.*

"Dave Cullen" <no*****@mail.com> wrote in message
news:3F***************@mail.com...
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

Nov 16 '05 #2
Thank you. That led me to discover that the iostream.h is my problem.

Dave

Pent wrote:

http://groups.google.com/groups?&q=L...languages.vc.*

"Dave Cullen" <no*****@mail.com> wrote in message
news:3F***************@mail.com...
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

Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2557
by: Vikrant | last post by:
Hi DB2/UDB Gurus, I got the same problem , when I am migrating DB2/UDB 5.2 to 7.2 EE under AIX. Is this a known problem ?, I would sincerely appreciate (well if you want to have money, that...
6
2738
by: Shai Levi | last post by:
Hi, I'm trying to migrate native c++ class to managed c++ class. The native class header definition looks as: class NativeClass { public: typedef void (CbFunc1)(int n,void* p);
2
959
by: Doug Bailey | last post by:
I have found a linker problem in .NET2003 when trying to build a web service. To replicate the problem, simply build a new web service project FILE->NEW->PRROJECT… command. In the "Hello...
1
2738
by: PaulieS | last post by:
Hi all. Am migrating a customer from IIS5 on W2K server to IIS6 on W2K3. Zipped all the websites and unzipped them to the identical locations on new server. Used IISMT to migrate metabase. ...
2
5522
by: PDHB | last post by:
Hi. I'm trying to migrate a small library to VC8 via the wizard, but when I try to compile I get the following errors: Error 1 error LNK2001: unresolved external symbol "?.cctor@@$$FYMXXZ"...
18
1829
by: Bruce Lawrence | last post by:
We use Access 97. We are in the process of migrating to 2003 along with SQL in most cases. We have a production database that contains a pretty important table and we would like to know which...
1
6762
by: Lucky | last post by:
hi guys, i got an error while i was migrating one of the webproject developed in 1.1 to 2.0. i got error in one dll reference in global.asax. it says "The type 'Ims.Tmpc.Global' is...
4
4431
by: yhebib | last post by:
Hello All, I've been browsing and reading all articles I could find on technet ,msdn and other knowledgeable sources to understand the issue I'm dealing with. However, I did not find so far how...
4
5994
by: VikrantS | last post by:
Hi, I am migrating code from VS 6.0 to VS2008. The Code compiles in VS 6.0 but gives the following errors when compiled in VS 2008, --- \Program Files\VC\atlmfc\include\afxcmn.inl(376) : error...
0
7114
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7321
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7034
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7488
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5623
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5045
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3191
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
762
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
412
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.