How can I embed Perl Interpreter inside a C ++ application creating a DLL?

I need a DLL built into C ++ with a Perl interpreter inside it, and the Perl exiftool library that Phil Harvey calls C ++ functions.

I want to do this on Windows 7 with the installed version of Visual Studio 2010 VC ++. Which Perl distribution is best suited for this task: Strawberry or ActiveState Perl ? Also, what is the Perl compilation command: nmake or dmake?

The end result should be a DLL. This can be imported into any C program, etc., And DLL functions will be called that will internally call Phil Harvey exiftool library functions / arguments / switches.

+4
source share
2 answers

If you have Perl installed, the first thing you need to do is look at the man page for perlembed, that is, "man perlembed" on Unix systems. Since you are on Windows, you are better off looking at the official Perl documentation on the Internet for "perlembed . "

There is a special section on Win32 on this information page. Regarding the features and caveats of including perl as a DLL, I don't really help there.

+2
source

It may be a bit overkill, but the SWIG page mentions access to Perl from NMAKE and the Visual Studio extension.

0
source

Source: https://habr.com/ru/post/1382115/


All Articles