xmlbeansxx icon indicating copy to clipboard operation
xmlbeansxx copied to clipboard

examples do not compile: expected unqualified-id before ‘-’ token

Open danadam opened this issue 10 years ago • 2 comments

File c.xsd defines types car-type and content-type. This produces code in c.h:

class car-type;
class content-type;

which fails to compile:

make[4]: Entering directory `/tmp/xmlbeansxx/examples/small'
...
In file included from create.cpp:1:0:
c.h:12:10: error: expected unqualified-id before ‘-’ token
c.h:14:14: error: expected unqualified-id before ‘-’ token

because - is not a valid character in C/C++ identifier.

danadam avatar Sep 19 '14 17:09 danadam

Pozwolę sobie odpowiedzieć po polsku - tak leniwy jestem ;) niestety już dawno nikt tu nie zaglądał... domyślam się, że błąd spowodowany jest starymi xmlbeans'ami Adamie zrób tak, spróbuj tego brancha: https://github.com/stawel/xmlbeansxx jeśli nie zadziała to się nad problemem jeszcze raz zastanowimy.

Pozdrawiam Paweł

ps: if you don't speak polish, please let me know

stawel avatar Sep 19 '14 17:09 stawel

Tak, https://github.com/stawel/xmlbeansxx buduje się poprawnie. Dzięki.

danadam avatar Sep 19 '14 18:09 danadam