2008/8/29 Chris Sutcliffe <ir0nh34d@...>:
>> The problem is, whenever make is launched, it always stops after
>> trying to run windres, due to an error message from the latter:
>> C:\Programs\MinGW\bin\windres.exe: filenamedoesntmatter.rc:1: syntax error
> We need to see what filenamedoentmatter.rc looks like in order to help.
> You mention:
>> * The programs are GNU patch and Notepad++ (ScintRes.rc).
> Would it be possible for you to post the offending line (i.e. line 1)
> of ScintRes.rc that you are trying to compile?
Well, I also mentioned:
> Then I tried case one: I used gcc to get a preprocessed version of one of the .rc files, and stripped any preprocessor-generated #-instructions (thus leaving just a version information block, with no constants whatsoever). windres failed, still complaining about the first line (even when I edited the file once more so that the first line was empty).
> As case two, I tried to just launch "windres -i empty.rc -o empty.res", where empty.rc is an existing empty file, and it was still complaining about a syntax error in the first line.
So the actual file contents are completely irrelevant.
Basically, the error is triggered for *every* .rc file I could get (I
made several small projects using VS, so I have several, none of which
work). Anyway, in almost all of the files, the first line is either a
comment, a preprocessing instruction (so windres doesn't get to see
it, as I confirmed gcc correctly preprocesses what it's supplied), or
Anyway, in case you still don't feel like relying on my statement
above, this is line 1 of ScintRes.rc:
// Resource file for Scintilla
I frankly doubt there may be any error in it.
Thanks for your attention, anyway.