rafalrusin / xmlbeansxx

xmlbeansxx is an open source C++ library easing the processing of XML data. It is very similar to and in fact was inspired by Apache XMLBeans. The goal is to have the same functionalities and interfaces of XMLBeans.
http://xmlbeansxx.touk.pl
Apache License 2.0
18 stars 8 forks source link

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

Open danadam opened 10 years ago

danadam commented 10 years ago

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.

stawel commented 10 years ago

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

danadam commented 10 years ago

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