Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Perlembedd and Qt
Qt 6.11 is out! See what's new in the release blog

Perlembedd and Qt

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    JRS_1986
    wrote on last edited by
    #1

    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":http://www.rzuser.uni-heidelberg.de/~cr076/Makefiles

    Thank you so much.

    1 Reply Last reply
    0
    • G Offline
      G Offline
      goetz
      wrote on last edited by
      #2

      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.

      http://www.catb.org/~esr/faqs/smart-questions.html

      1 Reply Last reply
      0
      • J Offline
        J Offline
        JRS_1986
        wrote on last edited by
        #3

        Hey,

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

        You need to add:
        @
        LIBS += -L/usr/lib/perl/5.12/CORE
        -lperl
        @
        to the .pro file.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved