|
|||||||||||||||||||||||||||
Jeg er løbet ind i et problem med perlcc. Såsnart jeg forsøger at compile et perl-script, hvori jeg benytter mig af DBI modulet (har ikke prøvet med andre moduler), fejler compileringen. Jeg har prøvet at finde en løsning på problemet, men kan ingen finde. Hvordan får jeg dog mit script compileret? Output fra perlcc: # perlcc nytest.pl -------------------------------------------------------------------------------- Compiling nytest.pl: -------------------------------------------------------------------------------- Making C(nytest.pl.c) for nytest.pl! perl -I/usr/local/lib/perl5/5.6.0/i686-linux -I/usr/local/lib/perl5/5.6.0 -I/usr/local/lib/perl5/site_perl/5.6.0/i686-linux -I/usr/local/lib/perl5/site_perl/5.6.0 -I/usr/local/lib/perl5/site_perl -I. -MO=CC,-onytest.pl.c nytest.pl Prescan DBI::dr has method DESTROY: saving package DBI::var has method DESTROY: saving package DBI::DBI_tie has method TIEHASH: saving package DBI::st has method DESTROY: saving package DBI::db has method DESTROY: saving package DBD::_::st has method DESTROY: saving package DBD::_::common saved (it is in DBD::_::st's @ISA) DBD::_::db has method DESTROY: saving package DBD::_::dr has method DESTROY: saving package DBD::_mem::st has method DESTROY: saving package DBD::_mem::common saved (it is in DBD::_mem::st's @ISA) DBD::_mem::db has method DESTROY: saving package DBD::_mem::dr has method DESTROY: saving package DBD::Switch::st has method DESTROY: saving package DBD::Switch::db_mem has method DESTROY: saving package DBD::Switch::dr_mem has method DESTROY: saving package DBD::Switch::db has method DESTROY: saving package DBD::Switch::dr has method DESTROY: saving package DBD::Switch::st_mem has method DESTROY: saving package Saving methods Loaded B Loaded IO Loaded Fcntl Loaded DBI nytest.pl syntax OK Compiling C(nytest) for nytest.pl! perl -I/usr/local/lib/perl5/5.6.0/i686-linux -I/usr/local/lib/perl5/5.6.0 -I/usr/local/lib/perl5/site_perl/5.6.0/i686-linux -I/usr/local/lib/perl5/site_perl/5.6.0 -I/usr/local/lib/perl5/site_perl -I. /tmp/nytest.pl.tst cc -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -I/usr/local/lib/perl5/5.6.0/i686-linux/CORE /usr/local/lib/perl5/site_perl/5.6.0/i686-linux/auto/DBI/DBI.so /usr/local/lib/perl5/5.6.0/i686-linux/auto/IO/IO.so /usr/local/lib/perl5/5.6.0/i686-linux/auto/Fcntl/Fcntl.so -o nytest nytest.pl.c -L/usr/local/lib -L/usr/local/lib/perl5/5.6.0/i686-linux/CORE -lperl -lnsl -lndbm -lgdbm -ldb -ldl -lm -lc -lposix -lcrypt /tmp/ccnK0Wub.o: In function `xs_init': /tmp/ccnK0Wub.o(.text+0x2b5d9): undefined reference to `boot_DynaLoader' collect2: ld returned 1 exit status ERROR: In compiling code for nytest.pl.c ! /Henrik
|
||||||||||||||
|
||||||||||||||