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. header file of lib not finded in the application
Forum Updated to NodeBB v4.3 + New Features

header file of lib not finded in the application

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 2 Posters 244 Views
  • 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.
  • B Offline
    B Offline
    Brashen
    wrote on last edited by
    #1

    Hello ,
    I try to create library and use it in an application.
    I create a dynamique lib with qtCreator call 'testSo' and create a new project 'testLib '.

    In 'testLib.pro' file i add :
    INCLUDEPATH += /home/bruno/Projets/build-testSo-Desktop-Release
    LIBS += -L/home/bruno/Projets/build-testSo-Desktop-Release -ltestso // i try also with libtestSO , libtestso, testso

    but when i try to do #include "testso.h" in testlib.h qtCreator doesn't find this file.

    jsulmJ 1 Reply Last reply
    0
    • B Brashen

      Hello ,
      I try to create library and use it in an application.
      I create a dynamique lib with qtCreator call 'testSo' and create a new project 'testLib '.

      In 'testLib.pro' file i add :
      INCLUDEPATH += /home/bruno/Projets/build-testSo-Desktop-Release
      LIBS += -L/home/bruno/Projets/build-testSo-Desktop-Release -ltestso // i try also with libtestSO , libtestso, testso

      but when i try to do #include "testso.h" in testlib.h qtCreator doesn't find this file.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Brashen said in header file of lib not finded in the application:

      INCLUDEPATH += /home/bruno/Projets/build-testSo-Desktop-Release

      Why do you set build folder as include path?
      Is the header file located in this folder?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • B Offline
        B Offline
        Brashen
        wrote on last edited by
        #3

        global and h are in this directory.
        but it seems that i have other bugs, I try to reinstall qtcreator and i try again

        1 Reply Last reply
        0
        • B Offline
          B Offline
          Brashen
          wrote on last edited by
          #4

          No reinstallation needed but even if you delete the folder of project it remain some info in qtcreator. so restart of qtcreator clear everything and it works again well !!

          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