| Previous | Next
ExtUtils::EmbedGenerally called from the Makefile that builds your application to provide initialization functions for embedding Perl code in C or C++ applications. For example: perl -MExtUtils::Embed -e xsinit perl -MExtUtils::Embed -e ldopts Uses the configuration information kept in Config.pm (see the Config module above). Exports the following functions.
ccdlflags Prints
ccflags Prints
ccopts Combines
ldopts Outputs arguments for linking the Perl library and extensions to your application. When invoked as: perl -MExtUtils::Embed -e ldopts - the following options are recognized:
Any additional arguments found before the -- token are taken as the names of modules to generate code for. Can also be called with parameters: 'ldopts($std,[@modules],[@link_args],$path)' When called this way, returns the argument string rather than printing it to STDOUT. The optional parameters are:
perl_inc For including Perl header files. For example, if you say: perl -MExtUtils::Embed -eperl_inc the module prints the following:
xsi_body (modules) Returns string of calls to
xsi_header Returns a string defining the same EXTERN_C macro as perlmain.c; also
xsinit Generates C/C++ code for the XS initializer function. When invoked as: perl -MExtUtils::Embed -e xsinit - the following options are recognized:
xsi_protos (modules) Returns string of |