id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc,lang,patch,platform
2043,".loadlib works when compiling, but not when running PBC",coke,,"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.
",bug,closed,normal,,none,3.1.0,medium,worksforme,,,tcl,,
