http://qs1969.pair.com?node_id=100918


in reply to Re: Re: Embedding perl in C.
in thread Embedding perl in C.

The options should be the same that your perl binary was complied with. Those options should be saved in the Config module.

Read the perlembed manpage.

You can use ExtUtils::Embed module to get at these options easier. This is in the above manpage:
cc -o interp interp.c `perl -MExtUtils::Embed -e ccopts -e ldopts`