none
Linker response file is set with incorrect intermediate directory RRS feed

  • 问题

  • I have set up an intermediate directory which is supposed to hold my object files. The compiler writes the obj file to that directory but then the response file for the linker is written with the wrong (default) intermediate directory and the linker obviously cannot find it and gives error LNK1104: cannot open file '.\Debug\vcfaltcount.obj'. Build log is below.

    Annoyingly, this used to work fine. I can't see anywhere else to change the location for intermediate files. It looks like I have set this correctly in the properties and the compiler understands it but whatever generates the linker response file ignores it.

    I think this may be the same error as reported here: http://social.msdn.microsoft.com/Forums/zh/Vsexpressvc/thread/99441f38-a04e-4a81-9141-5307d4f9b90c

      
    Creating temporary file "c:\intdir\RSP00002F110048632.rsp" with contents
    [
    /Od /I "C:\msvc\zlib123" /I "\msvc\extraheaders" /I "\msvc\vcflib\tabixpp" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_LIB" /D "USEDCCHANGES" /D "_USE_KNETFILE" /D "_UNICODE" /D "UNICODE" /Gm /EHsc /RTC1 /MTd /Fo"\intdir\\" /Fd"\intdir\vc90.pdb" /W3 /c /ZI /TP ..\vcfaltcount.cpp
    ]
    Creating command line "cl.exe @c:\intdir\RSP00002F110048632.rsp /nologo /errorReport:prompt"
    Creating temporary file "c:\intdir\TMP000030110048632.tmp" with contents
    [
    1 /* CREATEPROCESS_MANIFEST_RESOURCE_ID */ 24 /* RT_MANIFEST */ "..\\..\\..\\intdir\\vcfaltcount.exe.embed.manifest"
    ]
    Creating command line "rc.exe /fo"..\..\..\intdir\vcfaltcount.exe.embed.manifest.res" c:\intdir\TMP000030110048632.tmp"
    Creating temporary file "c:\intdir\RSP000031110048632.rsp" with contents
    [
    /OUT:"\msvc\vcflib\vcfaltcount.exe" /INCREMENTAL /LIBPATH:"\msvc\vcflib" /LIBPATH:"\msvc\zlib123" /MANIFEST /MANIFESTFILE:"\intdir\vcfaltcount.exe.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /NODEFAULTLIB:"msvcrt" /NODEFAULTLIB:"msvcrtd" /NODEFAULTLIB:"libcmtd" /NODEFAULTLIB:"msvcprtd" /DEBUG /PDB:"c:\msvc\vcflib\vcfaltcount.pdb" /SUBSYSTEM:CONSOLE /DYNAMICBASE /NXCOMPAT /MACHINE:X86 vcflib.lib zlib1d.lib ws2_32.lib msvcrtd.lib libcmtd.lib libcpmtd.lib  kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
    
    ".\Debug\vcfaltcount.obj"
    
    "..\..\..\intdir\vcfaltcount.exe.embed.manifest.res"
    ]
    Creating command line "link.exe @c:\intdir\RSP000031110048632.rsp /NOLOGO /ERRORREPORT:PROMPT"
    2012年1月26日 8:33