Skip to content

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

@janbraun

Description

@janbraun

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions