-
Notifications
You must be signed in to change notification settings - Fork 612
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
SP won't compile on C++14 #651
Comments
This is the case in C++11 as-well. |
And likely also applies to MP's version of the file too. |
I'm sure I already fixed a bunch. |
Due to a recent addition of |
We require VS2010 to compile, therefore (c)stdint(.h) is included. |
Specifically, smcv@5d2fd21 should fix most or all of this bug. I haven't tested MSVC, Windows or Mac builds, so I can't be sure that all instances are fixed, but the Linux build works (in g++'s C++11 mode) with that branch applied.
I'm not saying that MSVC doesn't have cstdint. However, Linux and Mac builds require either g++ or clang. g++ (gcc c++) does have cstdint, but in C++98 mode, it issues a compiler error if you use it. gcc in C++11 mode does allow using it (because cstdint is part of the C++11 standard), which is why I switched it into C++11 mode for #658. If you would prefer that part of #658 to be fixed by changing |
You are correct, this applies to both SP and MP (but seemingly not JK2). |
Due to changes with string literals in C++14, the compile will fail.
error C3688: invalid literal suffix 'S_COLOR_GREY'; literal operator or literal operator template 'operator ""S_COLOR_GREY' not found cvar.cpp:1013
Here's a sample of one of the lines:
Com_Printf( S_COLOR_GREY"Bind "S_COLOR_WHITE"%s = "S_COLOR_GREY"\""S_COLOR_WHITE"%s"S_COLOR_GREY"\""S_COLOR_WHITE"\n", Key_KeynumToString( b ), kg.keys[b].binding );
The text was updated successfully, but these errors were encountered: