resource compiler throwing error on non existent code

I am have a problem with setting the version and file info on my application using version.rc(below) it says there are syntax errors. I do not know where to start in order to fix them. Also I am using g++ 4.8 and mingw-tdm and code blocks nightly. Any help is greatly appreciated. Thanks.

Here's my code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#define VER_FILEVERSION             2,35,452,2463
#define VER_FILEVERSION_STR         "2.35.452.2463\0"
#define VER_PRODUCTVERSION          2,35,452,2463
#define VER_PRODUCTVERSION_STR      "2.35\0"
#define VER_COMPANYNAME_STR          "Adam Inc."
#define VER_FILEDESCRIPTION_STR       "A tool of many talents."
#define VER_INTERNALNAME_STR          "Omnitool"
#define VER_LEGALCOPYRIGHT_STR        "Adam Cohn, Copyright 2012~Forever"
#define VER_LEGALTRADEMARKS1_STR       "DO NOT REDISTRIBUTE!"
#define VER_ORIGINALFILENAME_STR       "Omnitool"
#define VER_PRODUCTNAME_STR            "Omnitool"
1 VERSIONINFO
BEGIN
    BLOCK "StringFileInfo"
    BEGIN
        BLOCK "040904E4"
        BEGIN
            VALUE "CompanyName",      VER_COMPANYNAME_STR
            VALUE "FileDescription",  VER_FILEDESCRIPTION_STR
            VALUE "FileVersion",      VER_FILEVERSION_STR
            VALUE "InternalName",     VER_INTERNALNAME_STR
            VALUE "LegalCopyright",   VER_LEGALCOPYRIGHT_STR
            VALUE "LegalTrademarks1", VER_LEGALTRADEMARVERSIONINFOKS1_STR
            VALUE "OriginalFilename", VER_ORIGINALFILENAME_STR
            VALUE "ProductName",      VER_PRODUCTNAME_STR
            VALUE "ProductVersion",   VER_PRODUCTVERSION_STR
        END
    END
Last edited on
What exactly does the syntax error say ?
It says version.rc:8:syntax error

This is line 8 FILEFLAGSMASK VS_FF_PRIVATEBUILD
I don't know whats wrong. I have done allot of research on this too.
"File was not built using standard release procedures. If this value is given, the StringFileInfo block must contain a PrivateBuild string."

It's expecting a special string to describe it much like the #define s u have on lines 1 to 4. U can just type out the string right after 'VS_FF_PRIVATEBUILD' on line 8 though if u want.
Last edited on
Do I even need to use FILEFLAGSMASK?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#define VER_FILEVERSION             2,35,452,2463
#define VER_FILEVERSION_STR         "2.35.452.2463\0"
#define VER_PRODUCTVERSION          2,35,452,2463
#define VER_PRODUCTVERSION_STR      "2.35\0"
#define VER_COMPANYNAME_STR          "Adam Inc."
#define VER_FILEDESCRIPTION_STR       "A tool of many talents."
#define VER_INTERNALNAME_STR          "Omnitool"
#define VER_LEGALCOPYRIGHT_STR        "Adam Cohn, Copyright 2012~Forever"
#define VER_LEGALTRADEMARKS1_STR       "DO NOT REDISTRIBUTE!"
#define VER_ORIGINALFILENAME_STR       "Omnitool"
#define VER_PRODUCTNAME_STR            "Omnitool"
1 VERSIONINFO
BEGIN
    BLOCK "StringFileInfo"
    BEGIN
        BLOCK "040904E4"
        BEGIN
            VALUE "CompanyName",      VER_COMPANYNAME_STR
            VALUE "FileDescription",  VER_FILEDESCRIPTION_STR
            VALUE "FileVersion",      VER_FILEVERSION_STR
            VALUE "InternalName",     VER_INTERNALNAME_STR
            VALUE "LegalCopyright",   VER_LEGALCOPYRIGHT_STR
            VALUE "LegalTrademarks1", VER_LEGALTRADEMARKS1_STR
            VALUE "OriginalFilename", VER_ORIGINALFILENAME_STR
            VALUE "ProductName",      VER_PRODUCTNAME_STR
            VALUE "ProductVersion",   VER_PRODUCTVERSION_STR
        END
    END

Please help, now the resource compiler is saying that there is a syntax error at line 29. There is not code at line 29.
Check your BEGIN and END blocks...they don't all match up.
ThankYou.
No resolution too many problems with resource compiler under windows xp(It crashes). The version info does not show on the file even when compiled and linked properly... I hate Microsoft.
Topic archived. No new replies allowed.