c++ - Using a dll in a qt application program -



c++ - Using a dll in a qt application program -

everybody, beginner , have still have things confusing about.

i have programme qt want include extern library. generaly, include extern library utilize macros :

includepath += "path/to/the/include/headers/file" libs += -l"path/to/where/the/lib/are" \ -llibname // .a gcc .lib mscv

then can utilize library in program. @ end qt aplication programme utilize .dll associated lib name. question, why can't utilize straight .dll in qt ? don't know much difference between ".lib" , ".dll" execpt ".dll" used @ runtime.

my problemen have library dll , include headers file. there way utilize library or must have .a or .lib associated ?

edit : ok now,thanks useful advice, understand improve difference between, .lib , .dll , how utilize dll without .lib header. having issue. header, can create object, compilator doesn't bother can't find object , method, when compile, have problems "undefined reference method".

if correctly understand, reference cannot found because reference defined in .lib, that's why can't find it. question :

how can compilator reference method defined @ runtime , not @ compile time ?

edit2 : ok apparently can pointer of object dll can't utilize methods, think facing wrong way. 1 time again answer.

best regards,

there 2 types of lib file, see asnwer: http://stackoverflow.com/a/2375144/2064646

you can utilize .dll without .lib file, through getprocaddress function.

c++ qt dll

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -