[OpenIndiana-discuss] (no subject)

Apostolos Syropoulos asyropoulos at yahoo.com
Fri Dec 13 19:33:20 UTC 2013




Hello,

I am trying to compile the comphelper module of OpenOffice and compilation stops with the following error messages: 

In file included from /extra/sources/OpenOffice/aoo4/main/comphelper/source/misc/locale.cxx:26:0:
/extra/sources/OpenOffice/aoo4/main/solver/410/unxsogi.pro/inc/comphelper/locale.hxx:74:29:
 error: expected unqualified-id before numeric constant
/extra/sources/OpenOffice/aoo4/main/solver/410/unxsogi.pro/inc/comphelper/locale.hxx:77:29:
 error: expected unqualified-id before numeric constant
/extra/sources/OpenOffice/aoo4/main/comphelper/source/misc/locale.cxx:115:22:
 error: expected unqualified-id before numeric constant
/extra/sources/OpenOffice/aoo4/main/comphelper/source/misc/locale.cxx:142:22:
 error: expected unqualified-id before numeric constant

lines 74-77 read as follows:

        static const Locale CS();
        static const Locale DA();
        static const Locale EL();
        static const Locale ES();

The problem with lines 74 and 77 is that the symbols CS and ES are defined in /usr/include/sys/regset.h 

The short program that follows

#include <iostream>
using namespace std;

int main() {
  cout << "CS = " << CS << endl;
  cout << "ES = " << ES << endl;
}

prints 

CS = 15
ES = 2

Since these are locale names that presumably cannot be changed does anyone have any idea how
to solve this problem?


A.S.

----------------------
Apostolos Syropoulos
Xanthi, Greece


More information about the OpenIndiana-discuss mailing list