Hi -

        A quick look at perldoc perlcc shows that you must perlcc Pg.pm (or
whatever .pm Pg is in) to create a "shared object" that can be used by your
main program. (NB: the doc states that shared objects are not available for
Win32).
        Also - perlcc is quite expermental - be careful!

Aloha => Beau.

-----Original Message-----
From: Cleiton L. Siqueira [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 17, 2002 9:58 AM
To: [EMAIL PROTECTED]
Subject: Compiling Perl Source


Dear,

I've tried to compile my code source with perlcc, but it has returned errors
at the time of compilation.
I've used the command line "use Pg;" and I think this is the problem,
because if I remove this line the compilation gets success.
The error returned at the time of compilation is:

----------------------------------------------------------------------------
----
Compiling servicos.pl:
----------------------------------------------------------------------------
----
Making C(servicos.pl.c) for servicos.pl!
/usr/bin/perl -I/usr/libdata/perl/5.00503/mach -I/usr/libdata/perl/5.00503 -
I/us
r/local/lib/perl5/site_perl/5.005/i386-freebsd -I/usr/local/lib/perl5/site_p
erl/
5.005 -I. -MO=CC,-oservicos.pl.c servicos.pl
servicos.pl syntax OK
substcont: op = LOGOP (0x8277960) pp_substcont, pmop = PMOP (0x82782c0)
pp_subst
pmopsym = (OP*)&pmop_list[3]
substcont: op = LOGOP (0x8277760) pp_substcont, pmop = PMOP (0x8278040)
pp_subst
pmopsym = (OP*)&pmop_list[4]
No definition for sub Pg::PGRES_InvalidOid
No definition for sub Pg::PGRES_InvalidOid (unable to autoload)
No definition for sub Pg::PGRES_INV_SMGRMASK
No definition for sub Pg::PGRES_INV_SMGRMASK (unable to autoload)
PG_results has method DESTROY: -uPG_results assumed
No definition for sub Pg::PGRES_CONNECTION_BAD
No definition for sub Pg::PGRES_CONNECTION_BAD (unable to autoload)
No definition for sub Pg::PGRES_FATAL_ERROR
No definition for sub Pg::PGRES_FATAL_ERROR (unable to autoload)
No definition for sub Pg::PGRES_EMPTY_QUERY
No definition for sub Pg::PGRES_EMPTY_QUERY (unable to autoload)
No definition for sub Pg::PGRES_CONNECTION_OK
No definition for sub Pg::PGRES_CONNECTION_OK (unable to autoload)
No definition for sub Pg::PGRES_INV_ARCHIVE
No definition for sub Pg::PGRES_INV_ARCHIVE (unable to autoload)
No definition for sub Pg::PGRES_COPY_OUT
No definition for sub Pg::PGRES_COPY_OUT (unable to autoload)
No definition for sub Pg::PGRES_BAD_RESPONSE
No definition for sub Pg::PGRES_BAD_RESPONSE (unable to autoload)
No definition for sub Pg::PGRES_TUPLES_OK
No definition for sub Pg::PGRES_TUPLES_OK (unable to autoload)
No definition for sub Pg::PGRES_INV_WRITE
No definition for sub Pg::PGRES_INV_WRITE (unable to autoload)
No definition for sub Pg::PGRES_COPY_IN
No definition for sub Pg::PGRES_COPY_IN (unable to autoload)
PG_conn has method DESTROY: -uPG_conn assumed
No definition for sub Pg::PGRES_INV_READ
No definition for sub Pg::PGRES_INV_READ (unable to autoload)
No definition for sub Pg::PGRES_COMMAND_OK
No definition for sub Pg::PGRES_COMMAND_OK (unable to autoload)
No definition for sub Pg::PGRES_NONFATAL_ERROR
No definition for sub Pg::PGRES_NONFATAL_ERROR (unable to autoload)
Compiling C(servicos) for servicos.pl!
/usr/bin/perl -I/usr/libdata/perl/5.00503/mach -I/usr/libdata/perl/5.00503 -
I/us
r/local/lib/perl5/site_perl/5.005/i386-freebsd -I/usr/local/lib/perl5/site_p
erl/
5.005 -I. /tmp/servicos.pl.tst
cc   -I/usr/libdata/perl/5.00503/mach/CORE
/usr/local/lib/perl5/site_perl/5.005/
i386-freebsd/auto/Pg/Pg.so
/usr/libdata/perl/5.00503/mach/auto/Fcntl/Fcntl.so -o
 servicos
ervicos.pl.c -Wl,-E -lperl -lm  -L/usr/libdata/perl/5.00503/mach/CORE
 -lperl -lm -lc -lcrypt
/tmp/cct24774.o(.data+0x1d7c): undefined reference to `XS_Pg_PQlo_lseek'
/tmp/cct24774.o(.data+0x1e60): undefined reference to `XS_Pg_PQlo_import'
/tmp/cct24774.o(.data+0x1ef8): undefined reference to `XS_Pg_PQlo_export'
/tmp/cct24774.o(.data+0x2028): undefined reference to `XS_Pg_PQlo_write'
/tmp/cct24774.o(.data+0x21f0): undefined reference to `XS_Pg_PQlo_close'
/tmp/cct24774.o(.data+0x2404): undefined reference to `XS_Pg_PQlo_read'
/tmp/cct24774.o(.data+0x2dd0): undefined reference to `XS_Pg_PQlo_unlink'
/tmp/cct24774.o(.data+0x2e1c): undefined reference to `XS_Pg_PQlo_tell'
/tmp/cct24774.o(.data+0x2eb4): undefined reference to `XS_Pg_PQlo_open'
/tmp/cct24774.o(.data+0x3160): undefined reference to `XS_Pg_PQlo_creat'
ERROR: In compiling code for servicos.pl.c !

Thanks,




Cleiton L. Siqueira
Colégio Monjolo
[EMAIL PROTECTED]
(0xx45) 520-1915

Esta mensagem foi enviada pelo sistema MONJOLO WEBMAIL

http://www.colegiomonjolo.com.br


This e-mail was scanned by RAV AntiVirus!
Esta mensagem foi verificada pelo Monjolo
Antivirus.

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




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

Reply via email to