Linking against c++ standard library?

Maurizio Cimadamore maurizio.cimadamore at oracle.com
Thu Aug 3 15:03:03 UTC 2023


Hi,
not an expert on the topic, but also found this:

https://stackoverflow.com/questions/67910722/how-to-deal-with-undefined-symbols-when-loading-mono-libraries-in-linux

It seems like libmono doesn't come with the right dynamic dependencies 
on it? (so library loading would fail).

I don't think this is something you can fix on the Java side. You need a 
library that has the right set of dependencies.

Maurizio

On 03/08/2023 15:53, Christoph Läubrich wrote:
> I used an older lib of "mono" [1] (v5) with panama without a problem 
> and everything worked out quite well but with v6 of the lib I can't 
> load it anymore because it fails [2] with "undefined symbol: _ZTIPi", 
> the maintainer of the lib responded that
>
> "though on modern Mono, you need to link against a C++ standard library"
>
> so my first guess was to add System.load("stdc++") but this seem not 
> working (at least it results in the same error message).
>
> So I wonder if there is anything special I can do to tell panama to 
> link/load a c++ standard library?
>
>
>
> [1] https://www.mono-project.com/
> [2] https://github.com/mono/mono/issues/21676


More information about the panama-dev mailing list