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

Need to set "#define _GLIBCXX_USE_CXX11_ABI 0" in libssp_test.cpp to compile with g++ 9.3.0 #10

Open
janbraun opened this issue May 1, 2020 · 1 comment

Comments

@janbraun
Copy link

janbraun commented May 1, 2020

When compiling with g++ 9.3.0 linking fails with:

/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: src/CMakeFiles/example.dir/__/libssp/example/libssp_test.cpp.o: in function `setup(imf::Loop*)':
libssp_test.cpp:(.text+0x1c1): undefined reference to `imf::SspClient::SspClient(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, imf::Loop*, unsigned long, unsigned short, unsigned int)'
collect2: error: ld returned 1 exit status

Changing the macro definition to
#define _GLIBCXX_USE_CXX11_ABI 0
results in a successful compile and an executable that can be started.

This is related to issue #1, only this time, the solution seems to be inverted.

@mkucmpro
Copy link

mkucmpro commented Aug 6, 2021

Same problem here. It seems that in 48f2921 the *.so file was compiled using either really old compiler or with _GLIBCXX_USE_CXX11_ABI=0.

Can you please provide a libssp.so built with _GLIBCXX_USE_CXX11_ABI=1

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

2 participants