[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] XS and building extensions




Hello,
	I have read all of the perl man pages (xstut, xsapi, perlguts,
etc.) and the POD's associated with extending with a C/C++ shared library
and I have found lots of Unix-based information, but very little about
issues specific to extending MacPerl.

	So, I have a few questions.

1) Do I have to use xsubpp to create the .pm file?  Or can I create it
myself?  It seems like if I create an .xs file and the .pm file to
bootstrap the library, it should work fine.

2) Additionally, what do I need to do with the .h files that specify the C
interface?  It seems like they are "#include" 'd into the .xs file, but are
they really necessary, since it seems like the .xs file has all of the
information necessary for MacPerl to use the library functions?

3) Finally, my shared library simply needs to go in the Extensions folder
inside the System Folder, right?

	I have been tinkering with my xs. and .pm file for a week now
trying to get things to work, but for some reason the .pm file cannot
bootstrap the library.

	Any ideas?  Matthias, help me, please.   =)

Benjamin Garrett



Gabriel Cheifetz
Glucose Development Corporation
gchei@glu.com
http://www.glu.com



***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch