vc++ compile error RC : fatal error RC1107: invalid usage; use RC /? for

前端 未结 7 1388
北海茫月
北海茫月 2021-02-06 02:11

I am getting following error while building my vc++ project (Using visual studio 2010)

RC : fatal error RC1107: invalid usage; use RC /? for

I know there is som

相关标签:
7条回答
  • 2021-02-06 02:19

    I also solved this problem by removing VS include path "\" from last entry.

    0 讨论(0)
  • 2021-02-06 02:22

    My solution for VS2010: click menu "Project","Properties" to open Property pages. click "Configuration properties", "general" to change Output Directory from "$(Configuration)\ \" to "$(Configuration)\" ,change interminably directory from "$(SolutionDir)$(Configuration)\ \" to "$(SolutionDir)$(Configuration)\".recompile and it's OK.

    0 讨论(0)
  • 2021-02-06 02:28

    I had this issue with VS 2017. The problem was that I did not notice that I had the build configuration set to Release and there was a string in one of the controls that was too long and needed to be truncated by the resource editor when the resources were loaded. Putting the build configuration back to Debug and attempting to open the Resource file fixed it. I got a different message this time: string too long - truncated, and the resources could be viewed now.

    0 讨论(0)
  • 2021-02-06 02:29

    I got this when upgrading from VS2008 to VS2010. None of the suggested solutions worked for me.
    What worked for me was deleting all the files in the configuration build folder (e.g. Release) and rebuilding the solution.

    0 讨论(0)
  • 2021-02-06 02:32

    I experienced that both with VS2015 and VS2017 . Pls look in 1, at the answer of AH214.

    In some cases the Resource Compiler fails to understand the options of the RC command line created by Visual Studio .

    To find the problematic option do:

    1. In VS2015, as described by AH214, copy the command line options listed in Project -> properties -> Configuration Properties -> Resources -> Command Line .

    2. Find some *.rc file on your machine.

    3. Open Visual Studio command prompt.
    4. Issue the command

      RC [the options copied in (1)] [the path to the rc file in (2)] .

      You should get the same RC1107 error.

    5. Check in this property page the contents of ...Resources -> All
      Options . Look for a suspicious option and fix or remove it.

    6. Repeat (4) and (5) till you do not get the RC1107 error in (4).

      Once you found the culprit, check if you can change it or even remove
      it.

    0 讨论(0)
  • 2021-02-06 02:44

    Solution: Add a slash to the last include path will do the trick. If your last include path already contain a slash at the end, delete it will also work.

    0 讨论(0)
提交回复
热议问题