Sean Farley <[email protected]> writes:
>> When PETSc is built as a C library depending on some C++ package (e.g.,
>> Elemental), we should have a reliable way for users to link independent
>> of whether their main is C, C++, or Fortran.  My recollection is that in
>> the majority of cases, C++ ends up just needing -lstdc++ while Fortran
>> has all manner of idiosyncrasies.
>
> You misspelled '-lc++' for Mavericks :-)

Yup, and this brings in the next bag of worms.  My understanding is that
clang needs -stdlib=libc++ or -stdlib=libstdc++ at compile-time to match
that passed at link-time (perhaps manually to the linker).  Is there any
way to determine what the default is?

It's nice how they soaked up the stdlib namespace to be C++-specific
because everyone knows that libc will always be binary-compatible and
that other languages will never be standard.

Attachment: pgpOD834wDX0z.pgp
Description: PGP signature

Reply via email to