I explain it.
I have a class part of mydll (it works ok)
ok, I want to use the .h and .cpp files of this class individually in 'pure' or 'direct' way , but I have two elements that are the guilty it does not work :
1.- The .h file has an include to global.h (where I define the SHARED_EXPORT sufix)
2.- The class it self (.h) that has 'ACLASSSHARED_EXPORT Aclass' name .Qt Code:
#include <QtCore/qglobal.h> #define ACLASSSHARED_EXPORT Q_DECL_EXPORT etcTo copy to clipboard, switch view to plain text mode
When I wnat to use in my project I have several errors an undefined references.
If I want top use it I have to duplicate the files and to delete the #include global.h and the 'ACLASSSHARED_EXPORT' sufix.
Is there a way to avoid this ?
Can I use a qmake variable to say 'If you are in dll environmet use it' if not, dont.
(or something like this?)
Thanks (I hope you can understand what I want)
Bookmarks