tfussell / xlnt

:bar_chart: Cross-platform user-friendly xlsx library for C++11+
Other
1.47k stars 409 forks source link

Build failed with GCC 14.1.1 #745

Open pointertobios opened 1 month ago

pointertobios commented 1 month ago

When building with GCC 14.1.1, file:

include/xlnt/cell/phonetic_run.hpp
include/xlnt/utils/time.hpp
include/xlnt/utils/timedelta.hpp
include/xlnt/utils/variant.hpp

need header <cstdint>.

pointertobios commented 1 month ago

In addition, here is the description of this new feature: https://gcc.gnu.org/gcc-14/porting_to.html It says:

Header dependency changes

Some C++ Standard Library headers have been changed to no longer include other headers that were being used internally by the library. As such, C++ programs that used standard library components without including the right headers will no longer compile.

The following headers are used less widely in libstdc++ and may need to be included explicitly when compiling with GCC 14:

  • <algorithm> (for std::copy_n, std::find_if, std::lower_bound, std::remove, std::reverse, std::sort etc.)
  • <cstdint> (for std::int8_t, std::int32_t etc.)
m7913d commented 4 weeks ago

As discussed in issue https://github.com/tfussell/xlnt/issues/748, this repo has been unmaintained for several years. In order to continue this great project started by tfussell, we have created a new repo to support further development by the community. Feel free to participate in this community effort by submitting issues and PR to this new community-driven repo.