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

Build Doubt:: set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_GLIBCXX_USE_CXX11_ABI=0") #235

Closed
DPVK27 opened this issue Dec 9, 2023 · 1 comment
Labels
wontfix This will not be worked on

Comments

@DPVK27
Copy link

DPVK27 commented Dec 9, 2023

I'm trying to build the code with this compiler flag set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_GLIBCXX_USE_CXX11_ABI=0"), it is not allowing. Could you please help me in this

@aral-matrix
Copy link
Collaborator

I believe the proper command in CMakeLists.txt is

    add_compile_definitions(_GLIBCXX_USE_CXX11_ABI=0)

However, as per https://gcc.gnu.org/onlinedocs/libstdc++/manual/using_macros.html:

_GLIBCXX_USE_CXX11_ABI

Defined to the value 1 by default. Configurable via --disable-libstdcxx-dual-abi and/or --with-default-libstdcxx-abi. ABI-changing. When defined to a non-zero value the library headers will use the new C++11-conforming ABI introduced in GCC 5, rather than the older ABI introduced in GCC 3.4. This changes the definition of several class templates, including std:string, std::list and some locale facets.

You seem to be trying to enable binary compatibility even older than C++11 - OpenXLSX is using C++17, and not even downward compatible to C++11 - much less to even older standards.

Unfortunately, this issue is therefore unfixable within OpenXLSX. I would recommend that you use newer compilers or - if you are trying to integrate into an older software that is important and can not be compiled on a newer system - you would have to create your own legacy interface to an OpenXLSX library compiled versus C++17.

@aral-matrix aral-matrix added the wontfix This will not be worked on label Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants