Perlembedd and Qt
I have a project, that compiles and runs just perfectly in C++. Now I am trying to port it to Qt and I get alot of compiling errors:
../Parser/VSymTable.cpp:-1: error:undefined reference to `Perl_Gthr_key_ptr'
Mainly undefined references, so the linker seems to be the problem.
As I don't know how to append files, I just put the files on a server. Maybe someone can help me on how to fix this.
Thank you so much.
You need to link against the perl libraries in your project. The "Declaring other Libraries":/doc/qt-4.8/qmake-project-files.html#declaring-other-libraries section of the qmake manual has the instructions. You will have to add the libs to the LIBS variable of your .pro file.
thank you very much. For everybody, that is searching for this:
You need to add:
LIBS += -L/usr/lib/perl/5.12/CORE
to the .pro file.