Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
danadam opened this issue Sep 19, 2014 · 2 comments
Open

Comments

@danadam
Copy link

danadam commented Sep 19, 2014

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
Copy link
Collaborator

stawel commented Sep 19, 2014

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
Copy link
Author

danadam commented Sep 19, 2014

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants