I added a .lib file and calling object problem
-
Check your .pro file.
That you link to the Dll.
(i assume you are using lib+dll and not all .cpp in project)Run qmake and watch output if it complains about the lib/dll
-
Hmm,no dll ,I didnt add it because I dont know how can I do it,where will I put it in project
@ZekDe
Hi
The lib file describes what symbols (code) that is visible. (or whole lib)
The DLL contains the actual binary code.
Always keep them together.
So where u point the .pro file should contain the DLL also.
You dont add the .dll to the project. its loaded runtime. -
What I do is snap7.cpp,snap7.h,snap7.lib is in project ,I linked the .lib and I didnt add the snap7.cpp and snap7.h already program handled it as far as I understand.
-
Hi
so you never ran the .bat file to build the lib? -
Well ,how can I src folders,probably this is better to use but I have a mistake with it .cannot find snap_threads.h but it is there