On 2016-10-22 13:16, spalis wrote:
> [...]
> Error: (load) unable to load compiled module - ./example.so: undefined 
> symbol: _ZTV6Square: "./example.so"
> [...]

Hello,

well, binutils tells us that

$ c++filt _ZTV6Square
vtable for Square

So the shared object you built apparently does not link correctly
against the C++ backend code you want to wrap.

You may have to add some linker flags to the CHICKEN compiler command
line to pull in necessary external libraries. You may also want to pass
the --no-undefined option to the GNU linker when building the shared
object (using csc ... -L -Wl,--no-undefined ...), which will instruct
the linker to report this kind of error rather than deferring its
detection to runtime :-)

Ciao,
Thomas


-- 
When C++ is your hammer, every problem looks like your thumb.

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to