Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I'm new to Perl and I'm trying to use the perlcc command to compile a perl program on a windows 95 machine. I try to run it but it gives me an error. It says "ERROR: In generating code for title.pl!" I'm starting to get frustrated. What should I do?

Replies are listed 'Best First'.
Re: Compiling on ActivePerl
by turnstep (Parson) on May 04, 2000 at 05:14 UTC
    Does it work with simple "Hello world" programs?

    Have you tried running it in debug (verbose) mode?

    C:> perlcc -verbosed test.pl

    This is just a wild guess, but make sure that the file it is trying to create (test.pl.c in the above example) is not set to read only. Not being able to create the output file would cause the error you describe....

Re: Compiling on ActivePerl
by BBQ (Curate) on May 04, 2000 at 18:47 UTC
    Also check the version of ActivePerl you are using. I used to sign the PerlApp ActivePerl list and there were quite a few unhappy customers in the begining. And of course, check their site.

    #!/home/bbq/bin/perl
    # Trust no1!
Re: Compiling on ActivePerl
by protocol (Initiate) on May 05, 2000 at 18:27 UTC
    From my limited understanding of the ways of perl, I believe windows 95 is only of limited enlightenment in these ways. From what I can figure perl is only 90% compatible with windows 95. There is a utility floating about that can check on your system's level of compatibility. I found it in the Teach Yourself Perl in 21 Days book. This book is very good and almost all of the programs work. It even includes a batch file that will turn your perl programs so that they can be launched from the command line without invoking perl with each execution.
RE: Compiling on ActivePerl
by Anonymous Monk on May 04, 2000 at 20:30 UTC
    switch to linux;)
Re: Compiling on ActivePerl
by Anonymous Monk on May 05, 2000 at 02:28 UTC
    Me again. I've tried all of these things. I just won't work. I've tried helloworld apps, and searched everywhere on the web. I would switch to Linux, but seeing this isn't my computer I dont have much of a choice. ;) If anyone has any further suggestions please email me at fokke_wulf@hotmail.com Thanks.
Re: Compiling on ActivePerl
by Anonymous Monk on May 05, 2000 at 16:12 UTC
    The compiler will only work on an NT machine.....
Re: Compiling on ActivePerl
by chromatic (Archbishop) on May 06, 2000 at 00:00 UTC
    Do you have a C compiler installed? Try: perlcc -gen <programname> If that works, it can't find your C compiler.