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

This is a discussion on fatal error LNK1104: cannot open file 'mfc42d.lib' within the C++ Programming forums, part of the General Programming Boards category; fatal error LNK1104: cannot open file 'mfc42d.lib' I need to edit a program. The source code is in Microsoft Visual ...

  1. #1
    Registered User
    Join Date
    Jul 2006
    Posts
    3

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

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

    I need to edit a program.
    The source code is in Microsoft Visual C++.

    So I tried express edition, and I get this error.

    After searching forums I found out that I needed the full professional edition.

    So I ordered the 90 Day Trial of Visual Studios 2005 Professional Edition.

    After installing(FULL install), I ran, and wow! same error!

    I've downloaded SDKs but all they have is 64 bit mfc42d.lib files, Using these just gives me a compatibility error. I need the 32bit/x86 junks.

    Anyone know how to fix this, or where to find this file? It's not on the computer or DVD, I've searched.

    I'm so stuck >_<

    Thank You,
    Dave

  2. #2
    Registered User divineleft's Avatar
    Join Date
    Jul 2006
    Posts
    158
    I'm having this problem with Express as well.

  3. #3
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    >>I'm having this problem with Express as well.<<

    The express edition doesn't support mfc.

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

    Not sure if this will be of help for your particular problem but read this thread which contains information which may prove useful.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

  4. #4
    Registered User
    Join Date
    Jul 2006
    Posts
    3
    Quote Originally Posted by Ken Fitlike
    >>fatal error LNK1104: cannot open file 'mfc42d.lib' <<

    Not sure if this will be of help for your particular problem but read [url=http://cboard.cprogramming.com/showthread.php?t=78903
    this thread[/url] which contains information which may prove useful.
    That looks to be my problem. But I don't understand a word of what that thread was talking about.

    When I open the program it says it needs to convert to current C++ version.

    I'm not a programmer and I haven't taken a programming class for over 6 years now. I have an App I need to edit. I only really need to edit about 5 lines of it.


    I'll try and do what that thread says, but It would be nice if someone had a more step by step explanation. I dunno what define: means!? or anything else of what he said? build my own DLL!? I'll try, I hope my computer doesn't explode

  5. #5
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    Essentially, what you should try is to create a new project rather than attempting to simply convert the existing one. When you do so, make sure that all project files from the older version of visual c++ have been removed ie. files specific to the visual c++ build process, not source code. Don't worry about the various preprocessor definitions referred to in that other thread just now; just try creating a new project and adding the souce code file(s) from the original one to it.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. File transfer- the file sometimes not full transferred
    By shu_fei86 in forum C# Programming
    Replies: 13
    Last Post: 03-13-2009, 01:44 PM
  2. Need Help Fixing My C Program. Deals with File I/O
    By Matus in forum C Programming
    Replies: 7
    Last Post: 04-29-2008, 08:51 PM
  3. fatal error LNK1104: cannot open file "Files\Microsoft.obj"
    By chintugavali in forum C Programming
    Replies: 2
    Last Post: 03-14-2008, 08:33 AM
  4. Basic text file encoder
    By Abda92 in forum C Programming
    Replies: 15
    Last Post: 05-22-2007, 02:19 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21