Hi Jony,

Sorry, the message simply says "Application cannot performe correctly (0xc0000005). Click [OK] to cancel "
Does that means I have to modify all my classes ?
My application uses only MinGW in Windows and no plans to use VS compiler.Do I still have to use dllimport/dllexport then ?


On 31 August 2010 15:23, JonY <jon_y@users.sourceforge.net> wrote:
On 8/31/2010 14:00, Ashika Umanga Umagiliya wrote:
Greetings all,

Please refer to the image at :


I use MinGW,QT and CMake for my project.
As shown in the figure, my project has two modules.

* libRinzoCore.DLL : a shared library which define some abstract classes and
interfaces and some core functionality of the application.This module is
used to implement dynamic Plugins (which are also shared libraries which
automatically loaded by the application) .

* Rinzo.exe     : the main application.This uses "libRinzoCore" classes.

"libRinzoCore" mainly developed using QT objects and link against the QT
"Rinzo.exe" also uses QT library objects,some are not being used in
"libRinzoCore".So I have to link QT Library and "libRinzoCore" with this

I can compile "libRinzoCore" without problems and it generated two files
"libRinzoCore.DLL" and "libRinzoCore.DLL.a"

But during compiling "Rinzo.exe" it gives the following output :

Linking CXX executable Rinzo.exe
    Info: resolving IRzPlugin::staticMetaObject       by linking to
__imp___ZN9IRzPlugin16staticMetaObjectE (auto-import)
    Info: resolving IRzViewerPlugin::staticMetaObject        by linking to
__imp___ZN15IRzViewerPlugin16staticMetaObjectE (auto-import)
    Info: resolving IRzLayeringPlugin::staticMetaObject        by linking to
__imp___ZN17IRzLayeringPlugin16staticMetaObjectE (auto-import)
warning: auto-importing has been activated without --enable-auto-import
specified on the command line.
    This should work unless it involves constant data structures referencing
     from auto-imported DLLs.
    [100%] Built target Rinzo

And when executing "Rinzo.exe" it crashes with the message (this is a
translation from Japanese error message)
But in linux (with GCC) with works fine.


What is the error message?

You can fix those auto-import warnings by using proper dllimport/dllexport for your classes.