当我尝试使用 windres(MinGW 随附)使用此处的教程编译我的 .rc 文件时,它给了我以下错误(我将“windres my.rc -O coff -o my.res”放入命令行) :
cpp: Too many arguments
windres: my.rc:1: syntax error
my.rc 如下:
1 ICON "C:\Users\Owner\Desktop\LonelyPlanet\LonelyPlanetIcon.ico"
2 VERSIONINFO
FILEVERSION 1,0,0,0
PRODUCTVERSION 1,0,0,0
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904E4"
BEGIN
VALUE "CompanyName", "Neil Flodin"
VALUE "FileDescription", "A game I made at iD tech camp!"
VALUE "FileVersion", "1.0"
VALUE "InternalName", "Lonely_Planet"
VALUE "LegalCopyright", "Copyright(c) Neil Flodin All Rights Reserved"
VALUE "OriginalFilename", "Lonely Planet.exe"
VALUE "ProductName", "Lonely Planet"
VALUE "ProductVersion", "1.0"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x409, 1252
END
END
我对我的 rc 文件/命令行输入做些什么奇怪的事情,如果是这样,我怎样才能让 windres 编译它?
-尼尔