Closed paddymul closed 3 days ago
It's not a dependency error, the compiler is complaining about the standard library. std::stack::emplace is a C++11 feature and I assume your compiler defaults to something older? However, on my system, reasonably recent versions of both g++ and clang++ default to C++17, so I'm not sure why that would happen.
Could you run this please?:
echo | c++ -dM -E -x c++ - | grep __cplusplus
If it comes out as something older, than I should clearly explicitly add a standard version flag to the Makefile, otherwise I'll have to look into it deeper.
Configure is mostly used for checking for libraries, Contra only depends on build tools (the compiler and the Flex transpiler).
echo | c++ -dM -E -x c++ - | grep __cplusplus
#define __cplusplus 199711L
Ok, well, I'm quite surprised. May I ask what kind of compiler that is?
Regardless, 20fe40005ecc6800e1009cfbc55558856d63e69e should fix it.
I ran this on os x, xcode installed.
I don't compile a lot of C/C++ code. Wouldn't I normally have to run configure that would catch needed requirements?
Maybe you could list the home brew packages necessary to compile on os x. or the
apt-get install
for ubuntu.