fpcres can't compile rc files that Delphi can.
Original Reporter info from Mantis: marco @marcoonthegit
-
Reporter name: Marco van de Voort
Original Reporter info from Mantis: marco @marcoonthegit
- Reporter name: Marco van de Voort
Description:
I store shader sources and (signed distance) font related data in resources to load them in a program.
These are in one .rc file that is compiled to a .res in Delphi. Till recently I used Delphi generated RES files, but I wanted to try fpcres, and it failed with
#MAIN.RC(1:43): at "emptycirclevertex": syntax error
vertexemptycircle RCDATA emptycirclevertex.ssrc
I tested both 3.3.1 and 3.2.1
Steps to reproduce:
fpcres shadersrc.rc -o shadersrc.res -of res
with shadersrc.rc consisting out of
vertexemptycircle RCDATA emptycirclevertex.ssrc
thefontmeta RCDATA "c:\candelasvn\candelatex\pic\fonts\arial.fnt"
Both files (.fnt and .ssrc) are textfiles. I added the second line because it has the "" quoting. I can't test it since it doesn't even accept the simple form.
Additional information:
In Delphi it is included in the main program as {$R schadersrc.res schadersrc.rc}
Mantis conversion info:
- Mantis ID: 38228
- Fixed in version: 3.2.2
- Fixed in revision: 47820 (#5cffbad9)