tescrin
1st August 2012, 22:35
Alright, bear with me; here's the compiler output: (I added newlines to make it easier to read)
1>Link:
1> Creating library C:\Users\eulmer\Desktop\Qt Replication\testBB\Win32\Release\testBB.lib and object C:\Users\eulmer\Desktop\Qt Replication\testBB\Win32\Release\testBB.exp
1>moc_testbb.obj : error LNK2019: unresolved external symbol
"public: static struct QMetaObject const BERTSpinbox::staticMetaObject" (?staticMetaObject@BERTSpinbox@@2UQMetaObject@@B)
referenced in function
"public: static class QString __cdecl BERTSpinbox::tr(char const *,char const *)" (?tr@BERTSpinbox@@SA?AVQString@@PBD0@Z)
1>main.obj : error LNK2001: unresolved external symbol "public: static struct QMetaObject const BERTSpinbox::staticMetaObject" (?staticMetaObject@BERTSpinbox@@2UQMetaObject@@B)
1>testbb.obj : error LNK2001: unresolved external symbol "public: static struct QMetaObject const BERTSpinbox::staticMetaObject" (?staticMetaObject@BERTSpinbox@@2UQMetaObject@@B)
1>C:\Users\eulmer\Desktop\Qt Replication\testBB\Win32\Release\\testBB.exe : fatal error LNK1120: 1 unresolved externals
1>
1>Build FAILED.
here's the undecorated names from the dll (that are relevant)(in order)(using dependency walker):
struct QMetaObject const BERTSpinbox::staticMetaObject
class QString BERTSpinbox::tr(char const *,char const *)
I know I never defined these; but why would I have to?* What am I missing here? What is this darn thing trying to tell me to add? Other plugins (referring to the other thread) worked just fine using the same algorithm for building them (so to speak.)
Researching lead me to believe this has something to do with wchars but I checked the relevant settings in the project file (that i never messed with in the first place mind you) and they are all good. Any thoughts?
*I say that because the only function I called from the DLL was the standard constructor with a QWidget parameter
1>Link:
1> Creating library C:\Users\eulmer\Desktop\Qt Replication\testBB\Win32\Release\testBB.lib and object C:\Users\eulmer\Desktop\Qt Replication\testBB\Win32\Release\testBB.exp
1>moc_testbb.obj : error LNK2019: unresolved external symbol
"public: static struct QMetaObject const BERTSpinbox::staticMetaObject" (?staticMetaObject@BERTSpinbox@@2UQMetaObject@@B)
referenced in function
"public: static class QString __cdecl BERTSpinbox::tr(char const *,char const *)" (?tr@BERTSpinbox@@SA?AVQString@@PBD0@Z)
1>main.obj : error LNK2001: unresolved external symbol "public: static struct QMetaObject const BERTSpinbox::staticMetaObject" (?staticMetaObject@BERTSpinbox@@2UQMetaObject@@B)
1>testbb.obj : error LNK2001: unresolved external symbol "public: static struct QMetaObject const BERTSpinbox::staticMetaObject" (?staticMetaObject@BERTSpinbox@@2UQMetaObject@@B)
1>C:\Users\eulmer\Desktop\Qt Replication\testBB\Win32\Release\\testBB.exe : fatal error LNK1120: 1 unresolved externals
1>
1>Build FAILED.
here's the undecorated names from the dll (that are relevant)(in order)(using dependency walker):
struct QMetaObject const BERTSpinbox::staticMetaObject
class QString BERTSpinbox::tr(char const *,char const *)
I know I never defined these; but why would I have to?* What am I missing here? What is this darn thing trying to tell me to add? Other plugins (referring to the other thread) worked just fine using the same algorithm for building them (so to speak.)
Researching lead me to believe this has something to do with wchars but I checked the relevant settings in the project file (that i never messed with in the first place mind you) and they are all good. Any thoughts?
*I say that because the only function I called from the DLL was the standard constructor with a QWidget parameter