[MacPorts] #71930: hdf5 +gcc14: Undefined symbols
MacPorts
noreply at macports.org
Sat Feb 8 16:52:06 UTC 2025
#71930: hdf5 +gcc14: Undefined symbols
--------------------------+----------------------
Reporter: jvianalopes | Owner: eborisch
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: hdf5 |
--------------------------+----------------------
Comment (by jvianalopes):
Replying to [comment:4 eborisch]:
> Compiling C++ code with GCC on MacOS is becoming increasingly dicey.
This appears to be running into similar problems as
https://trac.macports.org/ticket/70341 , and if I make re-add in -stdlib-
libc++ on the link line, I'm hitting https://github.com/llvm/llvm-
project/issues/98906. I'll poke at this as time allows, but is there a
reason you need the gcc build?
I use several features in my software that Clang doesn't support yet (like
mathematical functions). As far as I understand, I need to compile my
software with the same compiler and options as the ones used to compile
hdf5. Otherwise, I will have linking problems and undefined symbols due to
the types associated with strings (with the standard C++17).
Of course, I could load the functions from boost, but it is adding another
dependency.
Cheers
--
Ticket URL: <https://trac.macports.org/ticket/71930#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list