kambamsu
kambamsu

Reputation: 571

Linking win32 dll in Qt

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

Upvotes: 1

Views: 1832

Answers (1)

chalup
chalup

Reputation: 8516

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.

Upvotes: 3

Related Questions