[Cmb-users] automoc symbol issues

David Thompson david.thompson at kitware.com
Thu Apr 13 09:57:56 EDT 2017


Hi TJ,

In my version of CMB (admittedly not the latest master, but close), there is no EXPORT macro in the "class pqSMTKMeshInfo" declaration.

	David

> On Apr 13, 2017, at 08:52, <tj.corona at kitware.com> <tj.corona at kitware.com> wrote:
> 
> This got bounced from cmb-developers, so I am resending it here
>  
> Sent from Mail for Windows 10
>  
> From: tj.corona at kitware.com
> Sent: Thursday, April 13, 2017 7:49 AM
> To: cmb-developers at kitware.com; Shawn Waldon
> Subject: automoc symbol issues
>  
> Hi all,
>  
> I am trying to fix a bug I introduced into the windows build of ModelBuilder, and am having little luck. It looks like the auto-MOC’d file generated for my class has bad dll linkage. This is the perfect storm of Windows, Qt and linking for me, and I am completely out of my depth. Does anyone have any idea why my class (which looks exactly like the other Qt-derived classes in this directory) won’t compile on Windows? Here’s a snipped of the errors I’m getting:
>  
> c:\dev\cmb_sb_vs2015\superbuild\cmb\build\source\applications\modelbuilder\ModelBuilder_automoc.dir/moc_pqSMTKMeshInfo_OPAOOSEHZX24R7.cpp(52): warning C4273: 'staticMetaObject': inconsistent dll linkage
>  
> c:\dev\cmb_sb_vs2015\superbuild\cmb\build\source\applications\modelbuilder\modelbuilder_automoc.dir\../../../../../src/Source/Applications/ModelBuilder/pqSMTKMeshInfo.h(38): note: see previous definition of 'public: static QMetaObject const pqSMTKMeshInfo::staticMetaObject'
>  
> c:\dev\cmb_sb_vs2015\superbuild\cmb\build\source\applications\modelbuilder\ModelBuilder_automoc.dir/moc_pqSMTKMeshInfo_OPAOOSEHZX24R7.cpp(52): error C2491: 'pqSMTKMeshInfo::staticMetaObject': definition of dllimport static data member not allowed
>  
> Thanks!
>  
> Sincerely,
> T.J.
>  
> Sent from Mail for Windows 10



More information about the Cmb-users mailing list