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

Use of auto in cmdload.cpp fails to compile vme/src #8

Closed
rgautier opened this issue Jul 20, 2020 · 3 comments
Closed

Use of auto in cmdload.cpp fails to compile vme/src #8

rgautier opened this issue Jul 20, 2020 · 3 comments

Comments

@rgautier
Copy link

[rgautier@vps1 src]$ make all
cmdload.cpp: In function 'void skill_dump()':
cmdload.cpp:129:14: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
for (auto it = vect.begin(); it != vect.end(); ++it)
^
cmdload.cpp:129:19: error: 'it' does not name a type
for (auto it = vect.begin(); it != vect.end(); ++it)
^
cmdload.cpp:129:38: error: expected ';' before 'it'
for (auto it = vect.begin(); it != vect.end(); ++it)
^
cmdload.cpp:129:38: error: 'it' was not declared in this scope
make: *** [../build/./cmdload.o] Error 1

@iamnove
Copy link
Collaborator

iamnove commented Jul 20, 2020 via email

@Seifert69
Copy link
Owner

I added std=c++11 to the Makefile flags. LMK if you can compile (what machine/compiler are you on?)

@rgautier
Copy link
Author

rgautier commented Jul 21, 2020 via email

@prool prool mentioned this issue Aug 3, 2020
Seifert69 pushed a commit that referenced this issue Aug 17, 2020
Fizzie68 added a commit that referenced this issue Oct 11, 2020
Seifert69 pushed a commit that referenced this issue Oct 29, 2020
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

3 participants