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

Compilation Issues(CentOS 7): #198

Closed
slowlane81 opened this issue Jul 27, 2021 · 8 comments
Closed

Compilation Issues(CentOS 7): #198

slowlane81 opened this issue Jul 27, 2021 · 8 comments

Comments

@slowlane81
Copy link

I looked at several clsoed errors like the one that I had(repeatedly)

g++ -I. -I.. -DVMC_SRC -DVMC -DLINUX -DPOSIX -pipe -DMUD_DEBUG -g -Wall -g -c dilshare.cpp -o ../../build//vmc/dilshare.o
In file included from /usr/include/c++/4.8.2/forward_list:35:0,
from ../structs.h:10,
from ../utility.cpp:14,
from utility.cpp:10:
/usr/include/c++/4.8.2/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support for the
^
In file included from /usr/include/c++/4.8.2/forward_list:35:0,
from ../structs.h:10,
from ../structs.cpp:8,
from structs.cpp:11:
/usr/include/c++/4.8.2/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support for the
^

My makefile already has -std=c++11 in it, what else could be causing this issue?

@Seifert69
Copy link
Owner

That's perplexing. I did some searching - with no luck. When I look at your error, it's not obvious that the -std=c++11 flag is set:

g++ -I. -I.. -DVMC_SRC -DVMC -DLINUX -DPOSIX -pipe -DMUD_DEBUG -g -Wall -g -c dilshare.cpp -o ../../build//vmc/dilshare.o

Could you perhaps try to compile with just that line and add the two flags by hand, see what happens, i.e. something like:

g++ -I. -I.. -DVMC_SRC -DVMC -DLINUX -DPOSIX -pipe -DMUD_DEBUG -g -Wall -g -std=c++11 -c dilshare.cpp -o ../../build//vmc/dilshare.o

You could also try with the std=gnu++11

Let me know how it goes please.

@slowlane81
Copy link
Author

It leaves this error when I add the flags by hand:

Assembler messages:
Fatal error: can't create ../../build//vmc/dilshare.o: No such file or directory

@Seifert69
Copy link
Owner

Seifert69 commented Dec 24, 2021

If you're up for it you might want to try to build with the new CMake that was just added today by @bluedreamer. Would love to hear how that works out.

@bluedreamer
Copy link
Collaborator

I started to test this on cent 7, got distracted with xmas, you need to install cmake3 though from epel and maybe downgrade the minimum version in the top level CMakeLists.txt - I think the most "advanced" feature Im using is from 3.12

@Seifert69
Copy link
Owner

Seifert69 commented Dec 24, 2021 via email

@bluedreamer
Copy link
Collaborator

Been a while since I've used ubuntu/debian. A lot of distro's are shipping with cmake 3 by default - you can check with the usual cmake --version

Which version are you using? I can install a VM then and test it out

@Seifert69
Copy link
Owner

Seifert69 commented Dec 25, 2021 via email

@Seifert69
Copy link
Owner

Thank you @bluedreamer :-)

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