https://sourceware.org/bugzilla/show_bug.cgi?id=29133

            Bug ID: 29133
           Summary: Windres.exe : STRINGTABLE does not accept constants
           Product: binutils
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: i...@daniel-marschall.de
  Target Milestone: ---

In windres.exe , the STRINGTABLE resource does not accept constants (#define)
It causes a syntax error. The resource compilers of OpenWatcom and Visual C++
have no problems with the RC file.

Example below:


=== File language.h ===

#define MSG_PREMIERE_COMPAT_ID 1
#define MSG_PREMIERE_COMPAT_EN "...";
#define MSG_PREMIERE_COMPAT_DE "..."

#define MSG_RUNDLL_ERR_ID 2
#define MSG_RUNDLL_ERR_EN "..."
#define MSG_RUNDLL_ERR_DE "..."


=== File language.rc ===

#include "language.h"

LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
STRINGTABLE
{
    // Syntax error here!
    MSG_PREMIERE_COMPAT_ID, MSG_PREMIERE_COMPAT_EN
    MSG_RUNDLL_ERR_ID, MSG_RUNDLL_ERR_EN
}

LANGUAGE LANG_GERMAN, SUBLANG_GERMAN
STRINGTABLE
{
    // Syntax error here!
    MSG_PREMIERE_COMPAT_ID, MSG_PREMIERE_COMPAT_DE
    MSG_RUNDLL_ERR_ID, MSG_RUNDLL_ERR_DE
}

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to