none
fatal error LNK1295 in driver project after upgrading to Visual Studio 2012 RC RRS feed

  • Question

  • After upgrading from Visual Studio 2011 Beta to 2012 RC, previously functional KMDF driver project now gives:

    LINK : fatal error LNK1295: '/MANIFEST' not compatible with '/DRIVER' specification; link without '/MANIFEST'

    I selected /Manifest:No in the linker options for all project configurations, but the error remains.

    There is no way to actually remove the /MANIFEST command line switch, I can only select /MANIFEST or /MANIFEST:NO

    Sunday, June 3, 2012 8:30 PM

Answers

  • Bill,

    As you have noticed, this is a known issue that product team has already addressed here.  connect report.

    The proved workaround:

    • Uninstalling the Preview WDK, and installing the RC WDK,
    • Repair Visual Studio 2012 RC after installing the Release Preview of the Windows Driver Kit 8.

    Thanks,


    Forrest Guo | MSDN Community Support | Feedback to manager

    Thursday, June 21, 2012 9:06 AM
    Moderator

All replies

  • Hi wrlearjr,

    You set Manifest as No. You also need to clear the content of Manifest File.

    You can refer to:http://social.msdn.microsoft.com/Forums/en/Vsexpressvc/thread/942e3a2b-bc43-4e23-9a90-852a65c1aca2

    Best regards,

    Disley


    • Edited by Disley Monday, June 4, 2012 7:11 AM
    Monday, June 4, 2012 7:11 AM
  • Disley,

    Thanks for the quick response. However, the problem remains after I clear the "Generate Manifest" and "Manifest File" options for all configurations. The "Manifest File" field was already blank.

    As you can see from the Linker flags, there is no reference to /MANIFEST, but the error remains...

    ------------------------------------------------------------------------------------------------

    /OUT:"C:\projects\testdriver\Win7Debug\testdriver.sys"
    /FUNCTIONPADMIN:5 /Driver
    /PDB:"C:\projects\testdriver\Win7Debug\testdriver.pdb"
    "C:\Program Files (x86)\Windows Kits\8.0\lib\win7\KM\x86\memcmp.lib"
    /RELEASE /VERSION:"6.2" /DEBUG /MACHINE:X86 /ENTRY:"FxDriverEntry@8"
    /WX /OPT:REF /SAFESEH /INCREMENTAL:NO
    /PGD:"C:\projects\testdriver\Win7Debug\testdriver.pgd"
    /SUBSYSTEM:NATIVE",6.01" /OPT:ICF /ERRORREPORT:QUEUE /MERGE:"_TEXT=.text;_PAGE=PAGE"
    /NOLOGO /NODEFAULTLIB /SECTION:"INIT,d"

    ------------------------------------------------------------------------------------------------

    ...

    1>  Generating Code...
    1>LINK : fatal error LNK1295: '/MANIFEST' not compatible with '/DRIVER' specification; link without '/MANIFEST'

    Kindest Regards,

    Bill

    Monday, June 4, 2012 3:10 PM
  • Hi Bill,

    I see "/Driver" in your command lines.

    You can set it No and try again. Properties->linker->system->driver(No Set).

    Best regards,

    Disley

    Thursday, June 7, 2012 8:15 AM
  • Bill,

    As you have noticed, this is a known issue that product team has already addressed here.  connect report.

    The proved workaround:

    • Uninstalling the Preview WDK, and installing the RC WDK,
    • Repair Visual Studio 2012 RC after installing the Release Preview of the Windows Driver Kit 8.

    Thanks,


    Forrest Guo | MSDN Community Support | Feedback to manager

    Thursday, June 21, 2012 9:06 AM
    Moderator