Ticket #2043 (closed bug: worksforme)
.loadlib works when compiling, but not when running PBC
Reported by: | coke | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | none | Version: | 3.1.0 |
Severity: | medium | Keywords: | |
Cc: | Language: | tcl | |
Patch status: | Platform: |
Description
The directive:
.loadlib 'bit_ops'
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.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.