Thanks Wy.
Ok, it works with :
#ifndef ACORE_GLOBAL_H
#define ACORE_GLOBAL_H
#include <QtCore/qglobal.h>
#if defined(ACORE_LIBRARY)
# define W_FILESSSHARED_EXPORT Q_DECL_EXPORT
# define W_UTILESSHARED_EXPORT Q_DECL_EXPORT
# define W_QTUTILSHARED_EXPORT Q_DECL_EXPORT
# define W_ASCIISHARED_EXPORT Q_DECL_EXPORT
# define W_XMLSHARED_EXPORT Q_DECL_EXPORT
# define W_CONFIGSHARED_EXPORT Q_DECL_EXPORT
#else
#if defined(ACORE_DIRECT)
# define W_FILESSSHARED_EXPORT
# define W_UTILESSHARED_EXPORT
# define W_QTUTILSHARED_EXPORT
# define W_ASCIISHARED_EXPORT
# define W_XMLSHARED_EXPORT
# define W_CONFIGSHARED_EXPORT
#else
# define W_FILESSSHARED_EXPORT Q_DECL_IMPORT
# define W_UTILESSHARED_EXPORT Q_DECL_IMPORT
# define W_QTUTILSHARED_EXPORT Q_DECL_IMPORT
# define W_ASCIISHARED_EXPORT Q_DECL_IMPORT
# define W_XMLSHARED_EXPORT Q_DECL_IMPORT
# define W_CONFIGSHARED_EXPORT Q_DECL_IMPORT
#endif
#endif
#endif // ACORE_GLOBAL_H
#ifndef ACORE_GLOBAL_H
#define ACORE_GLOBAL_H
#include <QtCore/qglobal.h>
#if defined(ACORE_LIBRARY)
# define W_FILESSSHARED_EXPORT Q_DECL_EXPORT
# define W_UTILESSHARED_EXPORT Q_DECL_EXPORT
# define W_QTUTILSHARED_EXPORT Q_DECL_EXPORT
# define W_ASCIISHARED_EXPORT Q_DECL_EXPORT
# define W_XMLSHARED_EXPORT Q_DECL_EXPORT
# define W_CONFIGSHARED_EXPORT Q_DECL_EXPORT
#else
#if defined(ACORE_DIRECT)
# define W_FILESSSHARED_EXPORT
# define W_UTILESSHARED_EXPORT
# define W_QTUTILSHARED_EXPORT
# define W_ASCIISHARED_EXPORT
# define W_XMLSHARED_EXPORT
# define W_CONFIGSHARED_EXPORT
#else
# define W_FILESSSHARED_EXPORT Q_DECL_IMPORT
# define W_UTILESSHARED_EXPORT Q_DECL_IMPORT
# define W_QTUTILSHARED_EXPORT Q_DECL_IMPORT
# define W_ASCIISHARED_EXPORT Q_DECL_IMPORT
# define W_XMLSHARED_EXPORT Q_DECL_IMPORT
# define W_CONFIGSHARED_EXPORT Q_DECL_IMPORT
#endif
#endif
#endif // ACORE_GLOBAL_H
To copy to clipboard, switch view to plain text mode
And DEFINES +=ACORE_DIRECT in the .pro file.
Thanks.
A last question :
I use in my .pro:
INCLUDEPATH += mypath
DEPENDPATH += mypath
So, I can write code and QTknows where the class I'm using are, but it does not compile.
(Only compile if I add the files for the class to my project)
What more I need?
Bookmarks