none
Link error 1104 : mfc100.lib

    Question

  • Hello

    I am trying to run a visual c++ solution in my visual c++ Express edition.this error and warning occur:

     warning LNK4249: directive '/CLRTHREADATTRIBUTE:STA' conflicts with command line or previous directive; ignored
    1>LINK : fatal error LNK1104: cannot open file 'mfc100.lib'

    I tried to change use of MFC in project configurations from shared dll to static or windows standard , but It didn't change any thing.

    This project is developed in visual studio professional on windows 7 and I am using windows xp.

    I also installed some runtime things without use.

    Monday, August 27, 2012 6:18 AM

Answers

All replies

  • On 27/08/2012 08:18, nabzi_m wrote:


    I am trying to run a visual c++ solution in my visual c++ Express edition.this error and warning occur:

      warning LNK4249: directive '/CLRTHREADATTRIBUTE:STA' conflicts with command line or previous directive; ignored
    1>LINK : fatal error LNK1104: cannot open file 'mfc100.lib'

    Express edition doesn't support MFC.

    Giovanni

    Monday, August 27, 2012 10:19 AM
  • I am also getting this error and I am not using express edition

    Friday, August 31, 2012 3:15 PM
  • I'm on a VS2012 pro, and also get the  "error LNK1104: cannot open file 'mfc100.lib'" when building an old MFC project which was started in VS2008, and have since been used in VS2010.

    Anyone got ideas how to fix it?

    Monday, September 03, 2012 11:53 AM
  • Hello,

    I have marked Giovanni’s reply as answer.

    If you disagree, please unmark it, and post your doubt.

    Furthermore, if there are similar problems about other version of Visual Studio, I suggest we can open new threads about the LNK error on Visual Studio 2012 and other version.

    Thanks for your understanding.

    Regards,


    Elegentin Xie [MSFT]
    MSDN Community Support | Feedback to us

    Tuesday, September 04, 2012 8:17 AM