newcfd
24th February 2016, 16:30
have a small qt class BUtils with export definition. It is defined in one module BMesh(dll) and can be compiled in the module BMesh without issue in VIsual Studio. Then I use BUtils in another module(dll) TBase. I added qt libraries, BMesh.lib and include paths in the
properties of module TBase. I started to recompile TBase and got the linking error:
.obj : error LNK2001: unresolved external symbol "public: static struct QMetaObject const BUtils::staticMetaObject
I have another static variable defined in BUtils and got the following error:
.obj : error LNK2001: unresolved external symbol "public: static bool BUtils::m_bStop"
It seems only related to static definition. I have another nonstatic funcion and there is no error message to complains about
that one. What is wrong? Thanks for your help
properties of module TBase. I started to recompile TBase and got the linking error:
.obj : error LNK2001: unresolved external symbol "public: static struct QMetaObject const BUtils::staticMetaObject
I have another static variable defined in BUtils and got the following error:
.obj : error LNK2001: unresolved external symbol "public: static bool BUtils::m_bStop"
It seems only related to static definition. I have another nonstatic funcion and there is no error message to complains about
that one. What is wrong? Thanks for your help