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

Symbol lookup error #338

Open
KingDuckZ opened this issue Jan 31, 2025 · 0 comments
Open

Symbol lookup error #338

KingDuckZ opened this issue Jan 31, 2025 · 0 comments

Comments

@KingDuckZ
Copy link
Contributor

KingDuckZ commented Jan 31, 2025

Hello, compiling this with meson 1.6.1 and gdc 14.2.1, I'm getting this error when I start my program (just an empty main):

[9/10] Generating symbol file subprojects/dyaml/libdyaml.so.0.10.0.p/libdyaml.so.0.10.0.symbols
./src/animerelink: symbol lookup error: /home/michele/dev/rambuild/animerelink/debug/src/../subprojects/dyaml/libdyaml.so.0: undefined symbol: _D3std9algorithm9searching__T3allSQBg6format8internal5write__T20formatValueImplUlongTSQDg5array__T8AppenderTAyaZQoTaZQCdFKQBlmIbMKxSQFaQDu4spec__T10FormatSpecTaZQpZ10__lambda16Z__TQFvTAaZQGcMFNaNfQmZb

demangled it looks like:

pure @safe bool std.algorithm.searching.all!(std.format.internal.write.formatValueImplUlong!(std.array.Appender!(immutable(char)[]).Appender, char).formatValueImplUlong(ref std.array.Appender!(immutable(char)[]).Appender, ulong, in bool, scope ref const(std.format.spec.FormatSpec!(char).FormatSpec)).__lambda16).all!(char[]).all(char[])

Note that meson.build seems to be missing 'source/dyaml/stdsumtype.d' and the lib version is set to 0.8.4. Adding stdsumtype.d gets me past the first error and produces the one above. This only happens when building a .so, static lib seems to link and run fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant