undefined symbol: SkRuntimeEffect::Uniform::sizeInBytes()

44 views
Skip to first unread message

John Wiseman

unread,
Oct 2, 2023, 10:25:17 AM10/2/23
to skia-discuss
On windows, failed at link stage with:

> lld-link : error : undefined symbol: public: unsigned __int64 __cdecl SkRuntimeEffect::Uniform::sizeInBytes(void) const

It's likely caused by not exporting the nested classes which put method implementation in source file.

Brian Osman

unread,
Oct 3, 2023, 9:02:36 AM10/3/23
to skia-d...@googlegroups.com
Is this with a shared library (DLL) build? It looks like we might need to insert SK_API for the declaration of `struct Uniform`. Can you try that locally and see if it works?

--
You received this message because you are subscribed to the Google Groups "skia-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to skia-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/skia-discuss/7aca1669-f5c9-4126-9227-46cf9783eccen%40googlegroups.com.

John Wiseman

unread,
Oct 3, 2023, 1:08:21 PM10/3/23
to skia-discuss

Is this with a shared library (DLL) build? It looks like we might need to insert SK_API for the declaration of `struct Uniform`. Can you try that locally and see if it works?

 Yes it's a dll build and adding SK_API to Uniform works.

Reply all
Reply to author
Forward
0 new messages