tags:

views:

135

answers:

1

Hi, I want to reference a win32 dll from my Qt application. I've added the dll location in the .pro file at "LIBS+=" . Once that is done, by right, i should be able to include the .h file inside the dll from my application. But i'm unable to do so. I'm testing with the dll here: http://www.flipcode.com/archives/Creating_And_Using_DLLs.shtml

Any help would be appreciated!

Thanks

+2  A: 

I suppose you also have to add "INCLUDEPATH += path_to_library_headers" to your pro file. "LIBS+=" only tells the linker that some symbols are not in your application code, but in external dll, but you have to tell the compiler where it should look for the library headers.

Hope this helps. If you have any more problems, post the linker/compiler error messages, it would be much easier to tell what's wrong.

chalup
thanks a ton for that! works fine now!
kambamsu