Ticket #2043 (closed bug: worksforme)
.loadlib works when compiling, but not when running PBC
|Reported by:||coke||Owned by:|
Works at compile time so that the dynamic bit ops are found and the PIR can be compiled.
However, when this is compiled to .pbc, and the pbc is invoked (either directly by parrot or via a pbc2exe executable), the .loadlib directive is not run, so any dynamic compilation from that point on fails.
The workaround for this is to do both:
.sub loadlibs :init $P0 = loadlib 'bit_ops' .end .loadlib 'bit_ops'
This bug has been impacting partcl-nqp for some time. Haven't bisected.