May 31, 2012

JRS_1986 JRS_1986
Lab Rat
5 posts

perlembedd and Qt

 

Hi,

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.
Makefiles [rzuser.uni-heidelberg.de]

Thank you so much.

2 replies

May 31, 2012

Volker Volker
Robot Herder
5428 posts

You need to link against the perl libraries in your project. The 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.

June 1, 2012

JRS_1986 JRS_1986
Lab Rat
5 posts

Hey,

thank you very much. For everybody, that is searching for this:

You need to add:

  1. LIBS += -L/usr/lib/perl/5.12/CORE \
  2.                 -lperl

to the .pro file.

 
  ‹‹ Is QTableView using lazy population?      [Solved] QXmlStreamReader encoding guess ››

You must log in to post a reply. Not a member yet? Register here!