Connecting Tech Pros Worldwide Forums | Help | Site Map

mfc40d.lib link error

Newbie
 
Join Date: Aug 2009
Posts: 2
#1: Aug 28 '09
I am in the process of converting a Visual C++ 6.0 project to Visual Studio
2005. The conversion is almost complete, but in the linking phase, I get
the error:

LINK : fatal error LNK1104: cannot open file 'mfc42d.lib'

Familiar Sight
 
Join Date: Apr 2008
Posts: 149
#2: Aug 28 '09

re: mfc40d.lib link error


Quote:

Originally Posted by eleven1982 View Post

I am in the process of converting a Visual C++ 6.0 project to Visual Studio
2005. The conversion is almost complete, but in the linking phase, I get
the error:

LINK : fatal error LNK1104: cannot open file 'mfc42d.lib'

Hi,

Pls check whether the this 'mfc42d.dll' exists in the path where your VS is installed if it's not there.. I'll suggests you to reinstallthe VS.

As per my experience is concerned , 'mfc42d.dll' comes by default with Visual Studio 6.

Please let me know in case of any query.

Thanks!
Newbie
 
Join Date: Aug 2009
Posts: 2
#3: Aug 31 '09

re: mfc40d.lib link error


Hi, madankarmukta
Thank you for replying me the question. That your suggestion I have tried. I copy the mfc42d.lib to the path ,it can complier but run error.
Frinavale's Avatar
Site Moderator
 
Join Date: Oct 2006
Location: The Great White North
Posts: 5,127
#4: Aug 31 '09

re: mfc40d.lib link error


It seems that the mfc42d.lib is used for debugging MFC applications. Seeing that you're moving it to a VB.NET application I don't know why you need to use this...

I would find out what's referencing this library in your application and remove the reference.
Reply