Sisyphus
2006-06-21 04:23:44 UTC
Hi,
The following Inline::C script runs fine on linux (perl 5.8.8):
-- try.pl --
use warnings;
use Inline C => Config => BUILD_NOISY => 1;
use Inline C => <<'EOC';
void foo() {
Perl_report_uninit(aTHX);
}
EOC
foo(); # line 12
__END__
---------
The output is:
Use of uninitialized value in subroutine entry at try.pl line 12.
However, when I run the same script on Win32 (perl 5.8.8 and earlier), it
won't compile:
try_pl_6d5f.o(.text+0xf):try_pl_6d5f.c: undefined reference to
`Perl_report_uninit`
On Win32,'Perl_report_uninit' simply aint there in libperl58.a (or
libperl58.lib, as the case may be).
Anyone know what to use instead of Perl_report_uninit() on Win32 ?
Is there something happening here that p5p should be aware of ?
Cheers,
Rob
The following Inline::C script runs fine on linux (perl 5.8.8):
-- try.pl --
use warnings;
use Inline C => Config => BUILD_NOISY => 1;
use Inline C => <<'EOC';
void foo() {
Perl_report_uninit(aTHX);
}
EOC
foo(); # line 12
__END__
---------
The output is:
Use of uninitialized value in subroutine entry at try.pl line 12.
However, when I run the same script on Win32 (perl 5.8.8 and earlier), it
won't compile:
try_pl_6d5f.o(.text+0xf):try_pl_6d5f.c: undefined reference to
`Perl_report_uninit`
On Win32,'Perl_report_uninit' simply aint there in libperl58.a (or
libperl58.lib, as the case may be).
Anyone know what to use instead of Perl_report_uninit() on Win32 ?
Is there something happening here that p5p should be aware of ?
Cheers,
Rob