PDA

View Full Version : dll file inclusion



omprakash
31st July 2008, 17:38
dear friends
i have created a .dll file
i want to include in in my another application.
what should i write in LIBs varibale of .pro file .
if i write as below it is not working..

LIBS += -LD:\programming -lprog1.dll

where D:\programming is my folder and prog1.dll is my dll file.

This is not working. it is saying invalid file..
plz help..

jacek
31st July 2008, 18:06
It should be "-lprog1".

omprakash
31st July 2008, 19:33
This "-lprog1" is working fine if my library is a static library file..
that is if my library is prog1.lib it is working fine.
but if it is prog1.dll it is not working..
plz help..

jpn
31st July 2008, 19:41
You'll need the .lib also in case of a dynamic library. Fix your exports in case you're not getting one when you build the library.