Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

PerlApp : use threads

by P0w3rK!d (Pilgrim)
on May 22, 2003 at 16:09 UTC ( #260125=perlquestion: print w/replies, xml ) Need Help??

P0w3rK!d has asked for the wisdom of the Perl Monks concerning the following question:


When I use the following:

use threads; use threads::shared;
I am unable to compile an executable file using PerlApp from ActiveState Perl.
This is perl, v5.8.0 built for MSWin32-x86-multi-thread Binary build 806 provided by ActiveState Corp.
The console outputs the following:
C:\Work>perlapp --verbose PerlApp 5.1.0 build 510 Copyright (C) 1998-2003 ActiveState Corp. All rights reserved. Commercial license for P0w3rK!d <P0w3rK!> -e syntax OK '' had compilation errors.
An error dialog appears stating perlapp.exe threw an exception before the last 2 lines of output appear. Also, the verbose mode gave me no useful information.

Does anyone know what the problem is?

Note: non-threaded code compiles okay.

Thanks :)


Replies are listed 'Best First'.
Re: PerlApp : use threads
by P0w3rK!d (Pilgrim) on May 22, 2003 at 16:47 UTC
    Here's what I found on the ActiveState PDK mailing list...

    "It looks like you are using the module. PerlApp doesn't detect dependencies correctly for it; you will need to explicitly add the module to your application:

    perlapp --nocheck --add threads

    However, you may want to change your script to use explicitly. is just a wrapper for backward compatibility with older thread implementations. If you only use Perl 5.8 and later, is just useless bloat."

    -(Credit to Jan Dubois c/o

    I used:

    C:\Work>perlapp --nocheck --add threads
    ...and it works now. Thanks Jan! :)


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://260125]
Approved by hardburn
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2019-12-15 04:43 GMT
Find Nodes?
    Voting Booth?

    No recent polls found