Important: Please read the Qt Code of Conduct -

Include external library

  • Hello together,

    I'm very new to the whole QT area.

    At this point I'm using an ubuntu and I installed the QT creator. For my work I have to develop a project which is using CUDD ( So I downloaded CUDD and made a "make" command to build it. After that I tried to add the libs to the QT creator. I added a new SubProject and then a new C++ project. Then I tried to implement a simple example. I added the libs with the help of the gui and the "Add external lib" stuff of the QT creator. My ".pro" file contains the path extensions, the lib extensiona and so on. (see "compliling and linking under

    Then I had a lot of problems:

    1. I was not able to use:
      #include "util.h"
      #include "cudd.h"

    I had to provide the whole path here (/home/...... etc.). What am I doing wrong here?

    1. I tried to initiate this CUDD stuff from within my test code and I was told: "undefined reference to ....." What am I doing wrong here? I can go into the cudd code by typing F4 but it wouldn't build my test project.

    Can you please help me?
    Thanks in advance.

    Best regards,

  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Can you post your pro file ?

    Did you also add

    @DEPENDPATH += Path/To/CUDD/includes@

    To your pro file ?

  • undefined reference to imp_zn5……….Ev

    Your mistake is this?

Log in to reply