How can I embed Perl in a C ++ application?

I would like to name Perl script files from my C ++ program.

I'm not sure that the people I will distribute will have Perl installed.

I am mainly looking for a .lib file that I can use that has a license for the Apache distribution.

+5
source share
3 answers

You can embed perl in your application.

+13
source

Perl ++, . EP. , . - , , raw API.

+6

perl ++ API, ; perlxstut.

, , , , ".lib", , "lib" perl: strict.pm .. , . apache ..

However, for distributing Perl on Windows (I think you work on Windows since you mentioned the .lib file), the ActiveState distribution that everyone uses can cause some headache. This is not entirely clear to me, but it seems you cannot distribute ActivePerl in a commercial product. Note that if you want to embed Perl in a C ++ program, you may need to recompile it to have the same compilation flags in Perl in your program.

+1
source

All Articles