#2043: .loadlib works when compiling, but not when running PBC
--------------------+-------------------------------------------------------
 Reporter:  coke    |       Owner:       
     Type:  bug     |      Status:  new  
 Priority:  normal  |   Milestone:       
Component:  none    |     Version:  3.1.0
 Severity:  medium  |    Keywords:       
     Lang:  tcl     |       Patch:       
 Platform:          |  
--------------------+-------------------------------------------------------
 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.

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/2043>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets

Reply via email to