adding libs to my project and using them
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.
5 replies
- # 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.
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..
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.
You must log in to post a reply. Not a member yet? Register here!


