Jan 29, 2001, 4:56 PM
Post #1 of 1
Undifined boot_Socket while compailing C procedure
I'm trying to finish the C shared object library that has to map to Perl procedures in .pm file. Part of the procedures are using DBI intreface so I had to use DynaLoader and Socket.
Here is the code of the call:
# define EXTERN_C extern "C"
# define EXTERN_C extern
static void xs_init (void);
EXTERN_C void boot_DynaLoader _((CV* cv));
EXTERN_C void boot_Socket _((CV* cv));
char *file = __FILE__;
/* DynaLoader is a special case */
newXS("DynaLoader::boot_DynaLoader", boot_DynaLoader, file);
newXS("Socket::bootstrap", boot_Socket, file);
When I tried to compile the code using gcc on Solaris 5.7 I've got message that boot_Socket is undefined and because of this the procedure cannot be compiled.
Please let me know what can be done in order to make this work.
Thanks for a help.