locked
Unable to change /FR command line option RRS feed

  • Question

  • I'm building a project and have the command-line options set as follows in the Property Pages under C/C++ Command Line:

    /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_AFXEXT" /D "_VC80_UPGRADE=0x0600" /D "_WINDLL" /D "_AFXDLL" /D "_MBCS" /Gm /EHsc /RTC1 /MDd /Yu"stdafx.h" /Fp".\Debug/Genie.pch" /Fo".\Debug/" /Fd".\Debug/" /FR".\Debug\\" /W3 /nologo /c /ZI /TP /errorReport:prompt /D "WINVER=0x0501"

    Note that the /FR".\Debug\\" is set to FR, not the deprecated Fr

    When I run the build, I get the following output, which shows that the option changes for one file.  The name of the DLL being generated is Genie.dll and the problem file is Genie.cpp.

    Any suggestions on how to get the /FR options to be consistent will be appreciated.


    Build Log
       

    Build started: Project: Genie, Configuration: Debug|Win32

    Command Lines
       
    Creating temporary file "c:\MyProjects\Genie\Debug\RSP00001919084028.rsp" with contents
    [
    /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_AFXEXT" /D "_VC80_UPGRADE=0x0600" /D "_WINDLL" /D "_AFXDLL" /D "_MBCS" /Gm /EHsc /RTC1 /MDd /Yc"stdafx.h" /Fp".\Debug/Genie.pch" /Fo".\Debug/" /Fd".\Debug/" /FR".\Debug\\" /W3 /c /ZI /TP  /D "WINVER=0x0501"
    
    .\StdAfx.cpp
    ]
    Creating command line "cl.exe @c:\MyProjects\Genie\Debug\RSP00001919084028.rsp /nologo /errorReport:prompt"
    Creating temporary file "c:\MyProjects\Genie\Debug\RSP00001A19084028.rsp" with contents
    [
    /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_AFXEXT" /D "_VC80_UPGRADE=0x0600" /D "_WINDLL" /D "_AFXDLL" /D "_MBCS" /Gm /EHsc /RTC1 /MDd /Yu"stdafx.h" /Fp".\Debug/Genie.pch" /Fo".\Debug/" /Fd".\Debug/" /FR".\Debug\\" /W3 /c /ZI /TP  /D "WINVER=0x0501"
    
    .\YHatTable.cpp
    
    ... Various Other Files Compiled here - BOTH command lines above are correct
    
    ]


    ... Now the Genie.cpp file is compiled, but the command-line generated shows /Fr incorrectly

    Creating command line "cl.exe @c:\MyProjects\Genie\Debug\RSP00001A19084028.rsp /nologo /errorReport:prompt" Creating temporary file "c:\MyProjects\Genie\Debug\RSP00001B19084028.rsp" with contents [ /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_AFXEXT" /D "_VC80_UPGRADE=0x0600" /D "_WINDLL" /D "_AFXDLL" /D "_MBCS" /Gm /EHsc /RTC1 /MDd /Yu"stdafx.h" /Fp".\Debug/Genie.pch" /Fo".\Debug/" /Fd".\Debug/" /Fr".\Debug\\" /W3 /c /ZI /TP /D "WINVER=0x0501" .\Genie.cpp ]

    Output Window
       
    Compiling...
    StdAfx.cpp
    ...

    Compiling... cl : Command line warning D9035 : option 'Fr' has been deprecated and will be removed in a future release cl : Command line warning D9036 : use 'FR' instead of 'Fr' Genie.cpp c:\myprojects\genie\genie.cpp(4) : warning C4652: compiler option 'Generate Browser Info' inconsistent with precompiled header; current command-line option will override that defined in the precompiled header Compiling resources... Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0 Copyright (C) Microsoft Corporation. All rights reserved.

    ...


    BSCMAKE: warning BK4503 : minor error in .SBR file '.\Debug\Genie.sbr' ignored
    Results
       
    Build log was saved at "file://c:\MyProjects\Genie\Debug\BuildLog.htm"
    Genie - 0 error(s), 4 warning(s)
    

    Wednesday, August 12, 2009 6:23 PM

Answers

  • Maybe the /Fr option is set for Genie.cpp file individually? Right-click on the file, go to Properties and check the options.

    • Marked as answer by gawiz2009 Thursday, August 13, 2009 7:26 PM
    Wednesday, August 12, 2009 7:06 PM