From kde-perl Wed Sep 06 02:52:21 2006 From: Ashley Winters Date: Wed, 06 Sep 2006 02:52:21 +0000 To: kde-perl Subject: Re: [Kde-perl] Embedding perl in Qt Message-Id: <20060906025221.38419.qmail () web50904 ! mail ! yahoo ! com> X-MARC-Message: https://marc.info/?l=kde-perl&m=115751117615393 -- Matthew Pressly wrote: > As an alternative to using qt-perl, is it possible to embed a > perl interpreter (like what's described in the perlembed manpage > in the perl documentation) in a C++ QT3 or QT4 application so > that perl subroutines and code can be called from the C++ code? Yes, it can work. > I know this can be done from a non-QT C application, but have > not been able to get it working from C++ with QT3. > > Here is what I have tried so far: > > perl -MExtUtils::Embed -e ccopts -e ldopts That would be okay if you were compiling the program in one stage, but your Makefile is using -c to compile one source file at a time. For each source file, use -e ccopts (without the ldopts) For the final run of g++ to make the executable, which won't have any .cpp files listed in the command-line, use -e ldopts. Ashley Winters __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ Kde-perl mailing list Kde-perl@kde.org https://mail.kde.org/mailman/listinfo/kde-perl