473,399 Members | 2,146 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

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

hi,

i am trying to port my project from vc 6.0 to visual studio 2005 i getting the error

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

can anyone tell me how to rectify this error..???
Jan 31 '08 #1
5 18154
Meetee
931 Expert Mod 512MB
hi,

i am trying to port my project from vc 6.0 to visual studio 2005 i getting the error

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

can anyone tell me how to rectify this error..???
'mfc42d.lib' comes with Vidual studio 6 and will be located in C:\Program Files\Microsoft Visual Studio\VC98\MFC\Lib assuming Microsoft Visual Studio is installed at C:\Program Files\Microsoft Visual Studio. Link to the lib and the problem should get resolved.

Regards
Jan 31 '08 #2
'mfc42d.lib' comes with Vidual studio 6 and will be located in C:\Program Files\Microsoft Visual Studio\VC98\MFC\Lib assuming Microsoft Visual Studio is installed at C:\Program Files\Microsoft Visual Studio. Link to the lib and the problem should get resolved.

Regards
hi,

thanks.. i couldnt solve that error as u told.. it seems the mfc42d.lib is been replaced by mfc80d.lib.
i think i am stuck up in that...
Jan 31 '08 #3
Meetee
931 Expert Mod 512MB
hi,

thanks.. i couldnt solve that error as u told.. it seems the mfc42d.lib is been replaced by mfc80d.lib.
i think i am stuck up in that...
With 2005 VS MFC80D.dll comes and not 42D.dll. If you dont have Visual studio 6, get that and you will get the MFC42D.dll or try importing the source code from VS6 to VS8. To link to a particular DLL you need to specify the path in the Lib directories.

Regards
Jan 31 '08 #4
With 2005 VS MFC80D.dll comes and not 42D.dll. If you dont have Visual studio 6, get that and you will get the MFC42D.dll or try importing the source code from VS6 to VS8. To link to a particular DLL you need to specify the path in the Lib directories.

Regards
hi,
thanks..

i just want to know whether the i hv added the dll file correctly..

my mfc80d.dll is inside this path...

E:\Apps\Microsoft Visual Studio 8\VC\redist\Debug_NonRedist\x86\Microsoft.VC80.Deb ugMFC

so i hv include this in the
tools>options>projects and solutions > vc++ directories > [in this i added the above path in the library]

but even then the same error remains.. do i need to change anywere else.....
Jan 31 '08 #5
weaknessforcats
9,208 Expert Mod 8TB
Have you gone to your project properties and added the library name as linker input?? You have to do that in addition to setting the path.
Jan 31 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Mike | last post by:
The error during build in VC++: LINK : fatal error LNK1104: cannot open file "/blah/blah/blah.lib" the issue: I've inherited this cource code from another company and the company had their dir....
2
by: danip | last post by:
Hi, I have a C# project that have a C++ .net DLL as a reference. Everything is working okay, except when I try to rebuild only the C++ DLL I receive the error: fatal error LNK1104: cannot open...
1
by: Durga | last post by:
HI, I am converting VC++ 6.0 to .NET 2003. But I am getting linker error. Error: MyApplication fatal error LNK1104: cannot open file 'libci.lib'. MyApplication has OpenSSL, MFC and win 32...
1
by: Hunter | last post by:
Hi all, I'm a C newbie in a desperate need of help. My background isn't programming but engineering, so my programming skills are somewhat limited (I am able to write simple single-threaded...
2
by: Hunter | last post by:
Hi all, I'm a C newbie in a desperate need of help. My background isn't programming but engineering, so my programming skills are somewhat limited (I am able to write simple single-threaded...
1
by: bhushan11 | last post by:
hello sir i am searching in your site but i dont get how to place question about visual c++. so i am post this vc++ question in .net , sorre about that i am working on visual c++ lang. but i...
0
by: Grey Alien | last post by:
I am getting this link error although I am no longer linking to the library (as a result of refactoring). I have checked and double checked my link options and I am no longer including the .lib...
3
by: curious2007 | last post by:
#include "chartdir.h" int main(int argc, char *argv) { // The data for the bar chart double data = {85, 156, 179.5, 211, 123}; // The labels for the bar chart const char...
0
by: Apocalypse | last post by:
I have installed Visual Studio 2005 just now. When I compile and link a empty console application : #include "stdafx.h" int _tmain(int argc, _TCHAR* argv) { return 0; } There is an Link...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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,...
0
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...

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.