gcc, MoonGen, and compiler errors
When compiling MoonGen, I ran into an issue with a bunch of error messages like:
undefined reference to std::allocator... undefined reference to std::basic_string...
After some digging and wandering into this stackoverflow post, I realized that MoonGen doesn't specify g++ as it's compiler, and instead relies on CMake to correctly deduce it. However, CMake in my case was defaulting to gcc, which does not by default include the standard C++ library when compiling (for obvious and good reasons).
The fix was simple. I added a stanza to the CMakeLists.txt file akin to:
SET(CMAKE_CXX_COMPILER "/path/to/g++")













