I am attempting to develop a C executable with embedded perl. (attempting to execute a perl subroutine from a C program). I was trying to use the XPUSHp macro (included EXTERN.h and perl.h) and the compile fails with `targ' undeclared (first use in this function). In searching the include directories for perl distribution on the machine, it appears to not be declared anywhere. pp.h has #define TARG targ but that is all I can find.
The perl level is 5.005_03. I have done several compiles for a variety of embedded calls (perl_call_argv etc) and the compiles have not had a problem until I tried to use the XPUSHp macro.
Any tips would be greatly appreciated.