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. Adding libs to my project and using them

Adding libs to my project and using them

Scheduled Pinned Locked Moved General and Desktop
6 Posts 3 Posters 2.8k 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.
  • K Offline
    K Offline
    KillGabio
    wrote on last edited by
    #1

    hi guys!

    here are the file that i have:

    • winfis.lib
    • winfis32.dll
    • winfis.h

    the thing is that i dont know how to include them into my proyect so i can use the functions inside winfis.h

    i read the documentation (i`m working on windows XP, Qt SKD 4.7.4 minGW) so i tried, but failing to exec in Qt environment qmake, mingw32-make..

    i tried adding to my .pro file this (an example)
    @INCLUDEPATH += "C:\Documents and Settings\home\Escritorio\L..."

    LIBS += -L"C:\Docume..."@

    with no luck. Hope someone can point me in the right direction. Thank you all in advance.

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

      @

      The directory which contains winfis.h

      INCLUDEPATH += "C:/Documents and Settings/user/path/include"

      The directory which contains winfis.lib

      LIBS += -L"C:/Documents and Settings/user/path/lib" -lwinfis
      @

      Both directories may be the same.

      The DLL must be in a directory that is included in the regular search path. It should be sufficient to put it into the directory that contains your program's .exe file.

      BTW: Note the use of forward slashes, qmake automagically replaces them with backslashes if needed by the operating system.

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

      1 Reply Last reply
      0
      • K Offline
        K Offline
        KillGabio
        wrote on last edited by
        #3

        So i shouldn`t run the command mingw32-make (in Qt Environment) to the folders where i have this files?

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

          Ahm, no. Why should you? If you have a DLL and a .lib, I would expect that the library is built already, no?

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

          1 Reply Last reply
          0
          • K Offline
            K Offline
            KillGabio
            wrote on last edited by
            #5

            So right i was just checking :P i ll keep you posted when errors came up :D

            1 Reply Last reply
            0
            • G Offline
              G Offline
              giesbert
              wrote on last edited by
              #6

              [quote author="KillGabio" date="1328036058"]here are the file that i have:

              • winfis.lib
              • winfis32.dll
              • winfis.h
                ...
                i read the documentation (i`m working on windows XP, Qt SKD 4.7.4 minGW) so i tried, but failing to exec in Qt environment qmake, mingw32-make..
                [/quote]

              I think the problem is, that you are using mingw
              xxx.lib is a format that comes from MS compiler toolchain. I am not sure, if mingw can red them, if they are pure C (I don't think so). If they are c++, they are definitly incompatible.

              If they are C, you need to use late binding or need a mingw compatible link library.

              Nokia Certified Qt Specialist.
              Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

              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