Using MSVC2013, Qt 5.3.2: I have compiled succesfully a lib Mylib.lib, Mylib.dll. Im trying to link it with my MyApp. however while
compiling my MyApp(with MSVC2013) I'm failing with "inconsitent dll linkage, MetaObject: definition of dllimport static member not allowed"

My library has:

1) Mylibraryglobal.h

#if defined(FLAGLIB_EXPORT)
# define FLAGLIB_EXPORT Q_DECL_EXPORT
#else
# define FLAGLIB_EXPORT Q_DECL_IMPORT
#endif

2) pro file of the library:
TEMPLATE = lib

3) MyLibclass.cpp:

class FLAGLIB_EXPORT MyClass : public QObject
{

}

MyApp is accessing all the header files of MyLib and using MyLib classes.

what should be the content of my MyApp project file in order to properly link to the library?

Thanks;

Mut