This is the code for 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
# 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 // 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
# 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 // ACORE_GLOBAL_H
To copy to clipboard, switch view to plain text mode
and filess.h is
#ifndef W_FILESS_H
#define W_FILESS_H
#include "Acore_global.h"
class W_FILESSSHARED_EXPORT W_filess
{
#ifndef W_FILESS_H
#define W_FILESS_H
#include "Acore_global.h"
class W_FILESSSHARED_EXPORT W_filess
{
To copy to clipboard, switch view to plain text mode
This is a piece of my dll that works fine.
How can I use filess.h in another project but not in dll ? (That is, just including the files with #include)
. Have I to write another thing at Acore_global.h ?
Thanks
Bookmarks