I assume perl_alloc(); is in perl.h which you haven't posted, so I'm not sure why it, and the other methods, aren't working. Actually, instead of writing it yourself, you might try ExtUtils::Embed.
"Cogito cogito ergo cogito sum - I think that I think, therefore I think that I am." Ambrose Bierce
In reply to Re: Embedding perl into a win32 console application
by kutsu
in thread Embedding perl into a win32 console application
by smack
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |