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

build fails in editor and mnttool with "error: reference to size is ambiguous" #2

Open
juanitotc opened this issue Apr 29, 2023 · 2 comments

Comments

@juanitotc
Copy link
Collaborator

Apparently:

The use of "using namespace std" and declaring a variable named "size"
leads to problems in C++17 mode and hence GCC 11. There is ambiguity
because C++17 has "std::size" in the standard library.

@clbr
Copy link
Collaborator

clbr commented Apr 29, 2023

You can rename the var, or build with -std=gnu++11 or similar.

@juanitotc
Copy link
Collaborator Author

-std=gnu++11 works

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