halfcountplus has asked for the wisdom of the Perl Monks concerning the following question:
I'm working on an XS module and I'd like to be able to test code by just compiling a C file. However, including EXTERN.h, perl.h, and XSUB.h does not cut the mustard; some of the "undefined references" lead only to binary files, so perhaps there is something I have to feed the linker here? The stuff I've found online only discusses using h2xs and the whole build process. I'm assuming that is not necessary if the executable is not really a perl module (it's just using the api)?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using the perl API in C
by Anonyrnous Monk (Hermit) on Dec 20, 2010 at 19:22 UTC | |
by halfcountplus (Hermit) on Dec 20, 2010 at 19:53 UTC | |
by Anonyrnous Monk (Hermit) on Dec 20, 2010 at 20:09 UTC | |
by halfcountplus (Hermit) on Dec 20, 2010 at 20:18 UTC | |
|
Re: Using the perl API in C
by ikegami (Patriarch) on Dec 20, 2010 at 20:06 UTC | |
|
Re: Using the perl API in C
by andal (Hermit) on Dec 21, 2010 at 10:15 UTC |