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
Comments
Try adding -std=c++11 to your CXXFLAGS in the Makefile
…On Tue, Jul 21, 2020, 9:08 AM Rich Gautier ***@***.***> wrote:
***@***.*** 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
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#8>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGEYWFIOEBQHRU5S7PURWPLR4TE6TANCNFSM4PC4R6MQ>
.
|
I added std=c++11 to the Makefile flags. LMK if you can compile (what machine/compiler are you on?) |
Was able to compile... CentOS.
had one more problem with compiling with -j8 but removed it for success.
On a cheap VM with mem and CPU restrictions.
Much thanks
…On Tue, Jul 21, 2020, 1:21 AM Michael Seifert ***@***.***> wrote:
I added std=c++11 to the Makefile flags. LMK if you can compile (what
machine/compiler are you on?)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#8 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFPYGHL4FZUPVRYWI2RT6TR4UQVXANCNFSM4PC4R6MQ>
.
|
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
[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
The text was updated successfully, but these errors were encountered: