Thread: LINK : fatal error LNK1104: cannot open file "nafxcwd.lib"

  1. #1
    Registered User
    Join Date
    Jul 2011
    Posts
    10

    LINK : fatal error LNK1104: cannot open file "nafxcwd.lib"

    When i compile my project in release mode . I am getting the below error.
    --------------------Configuration: ProdAuf - Win32 Release--------------------
    Linking...
    LINK : fatal error LNK1104: cannot open file "nafxcwd.lib"
    Error executing link.exe.

    ProdAuf01.exe - 1 error(s), 0 warning(s)
    But if i compile in debug mode . I am able to compile it successfully. and exe is generated. I am getting error only in release mode.
    In project setting -->General tab. Iam using Microsoft Foundation class as Use MFC as Shared dll.. There are only 2 options .
    1. Use MFC as Shared dll.
    2.Not using MFC.
    There is no other option.
    Please help to find and solve the issue.
    Let me know why it is happenning?. How to solve this problem.?

  2. #2
    Registered User
    Join Date
    May 2010
    Posts
    4,632
    What version of the compiler are you using?

    Jim

  3. #3

    Join Date
    May 2005
    Posts
    1,042
    This may give you some ideas, but likely wont' directly solve your problem:

    opencv-users - fatal error LNK1104: cannot open file 'cv210d.lib;' error
    I'm not immature, I'm refined in the opposite direction.

  4. #4
    Registered User
    Join Date
    Jul 2011
    Posts
    10
    I am using Visual C++ 6.0

  5. #5
    Registered User
    Join Date
    Jul 2011
    Posts
    5
    this maybe help,Settings -> General -> MS Foudation Classes -> Shared DLL or For these part
    LNK1104 cannot open file nafxcwd.lib. Sample program

  6. #6
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Is there a reason you are using such an old version?
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. X server slaps some template code with a "fatal IO error"
    By Yarin in forum Linux Programming
    Replies: 8
    Last Post: 08-24-2009, 08:47 AM
  2. Replies: 6
    Last Post: 08-26-2008, 12:38 PM
  3. fatal error LNK1104: cannot open file "Files\Microsoft.obj"
    By chintugavali in forum C Programming
    Replies: 2
    Last Post: 03-14-2008, 07:33 AM
  4. fatal error LNK1104: cannot open file 'mfc42d.lib'
    By dkennington in forum C++ Programming
    Replies: 4
    Last Post: 07-12-2006, 02:40 PM
  5. fatal error LNK1104
    By DMH in forum C++ Programming
    Replies: 2
    Last Post: 11-16-2005, 03:46 AM