Simple ActiveX - Class has no metaobject information
-
Hi,
with Qt version 5.12.4, I have successfully tried to compile the simple example (ActiveQt) at this link: https://doc.qt.io/qt-5.12/activeqt-activeqt-simple-example.html
In this example no library is linked.
If I try to link any library (LIBS += -llibd in the .pro file) , the following error occurs:
"Couldn't load library file simpleax.dll
Class has no metaobject information
mingw32-make[1]: [Makefile.Debug:67: simpleax.dll] Error 3 (ignored)."Is anyone aware of this problem?
-
Hi and welcome to devnet,
Are you sure that the .dlls matching your dependencies can be found at run time ?
-
Hi, that error typically occurs when there's no matching .tlb type library file, e.g. no simpleax.tlb file.
The MinGW compiler manages to create *.idl files just fine with the idc.exe tool, but it has no midl.exe to create the .tlb file from the .idl file (yet). So for that last step, think you need MSVC :-(