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

cannot compile on ubuntu 19.04 #7

Open
songmaotian opened this issue May 28, 2019 · 0 comments
Open

cannot compile on ubuntu 19.04 #7

songmaotian opened this issue May 28, 2019 · 0 comments

Comments

@songmaotian
Copy link

download a 5.12.3 qt sdk, and using g++ to build the project, and get the following error

In file included from trace.cpp:3:
base.h:10:34: error: expected ‘,’ or ‘...’ before ‘default’
E to_enum(const QString &name, E default) {
^~~~~~~
base.h: In function ‘E xi::to_enum(const QString&, E)’:
base.h:17:12: error: expected primary-expression before ‘default’
return default;
^~~~~~~
base.h:17:11: error: expected ‘;’ before ‘default’
return default;
^~~~~~~~
;
base.h:17:12: error: case label not within a switch statement
return default;
^~~~~~~
base.h:17:19: error: expected ‘:’ before ‘;’ token
return default;
^
:

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

1 participant