I wonder why there's so much traffic on this list about perlcc? Why do so
many feel the compulsion to "compile" their programs?

----- Original Message -----
From: "Tony" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 06, 2002 9:04 PM
Subject: perlcc boot_File__Glob error (solution)


I couldn't find a better place to post this information than
beginners section so here it is:

------------------------------------------------------------------------
----------

If you are compiling your perl prog with perlcc and receive this error,

/tmp/ccaooDv1.o: In function `dl_init':
/tmp/ccaooDv1.o(.text+0x4d687): undefined reference to `boot_File__Glob'
collect2: ld returned 1 exit status

Or one similar to a File__Glob type error, you may want to
check your code to see if your using

while(</etc/somedirectory/*>)
{
# statement
}

I was using that statement without using any glob module.

So when I finally narrowed what the error was in reference to down to
that code I figured what it wanted was a module to define the glob code
I was using.

The Fix:

I added this line above all usage instances of that code:

use File::DosGlob 'glob';

I suppose use File::Glob 'glob'
would work too but all I had is DosGlob.pm installed at the moment.

Seems that glob needs to be defined manually with perlcc but with the
perl interpreter glob is already defined.

If anyone has additional information to educate me a little more on this
'glob' issue I'd appreciate it.

Hope this helps someone.

Tony



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to