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

前端 未结 7 1612
北海茫月
北海茫月 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: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.

提交回复
热议问题