PDA

View Full Version : Linking errors



rickrvo
28th April 2011, 18:36
Hi,

I'm trying to compile for wince... and I keep getting this error:

Linking...
Creating library debug\uni_net-student-mobile-wince.lib and object debug\uni_net-student-mobile-wince.exp
main_student.obj : error LNK2001: unresolved external symbol "public: static struct QMetaObject const systemKeyTrapper::staticMetaObject" (?staticMetaObject@systemKeyTrapper@@2UQMetaObject @@B)
main_student.obj : error LNK2019: unresolved external symbol "public: __cdecl systemKeyTrapper::systemKeyTrapper(bool)" (??0systemKeyTrapper@@QAA@_N@Z) referenced in function "public: void __cdecl systemKeyTrapper::`default constructor closure'(void)" (??_FsystemKeyTrapper@@QAAXXZ)
main_student.obj : error LNK2019: unresolved external symbol DSA_free referenced in function "public: virtual __cdecl dsaKey::~dsaKey(void)" (??1dsaKey@@UAA@XZ)
main_student.obj : error LNK2019: unresolved external symbol "public: virtual void __cdecl privateDSAKey::load(class QString const &,class QString)" (?load@privateDSAKey@@UAAXABVQString@@V2@@Z) referenced in function "public: __cdecl privateDSAKey::privateDSAKey(class QString const &,class QString const &)" (??0privateDSAKey@@QAA@ABVQString@@0@Z)
main_student.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl privateDSAKey::save(class QString const &,class QString)const " (?save@privateDSAKey@@UBAXABVQString@@V2@@Z)
main_student.obj : error LNK2019: unresolved external symbol "public: virtual void __cdecl publicDSAKey::load(class QString const &,class QString)" (?load@publicDSAKey@@UAAXABVQString@@V2@@Z) referenced in function "public: __cdecl publicDSAKey::publicDSAKey(class QString const &)" (??0publicDSAKey@@QAA@ABVQString@@@Z)
main_student.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl publicDSAKey::save(class QString const &,class QString)const " (?save@publicDSAKey@@UBAXABVQString@@V2@@Z)
student_message_box.obj : error LNK2019: unresolved external symbol "public: __cdecl messageBox::messageBox(class QString const &,class QString const &,class QPixmap const &)" (??0messageBox@@QAA@ABVQString@@0ABVQPixmap@@@Z) referenced in function "public: __cdecl studentMessageBox::studentMessageBox(class QString const &,class QString const &,class QPixmap const &)" (??0studentMessageBox@@QAA@ABVQString@@0ABVQPixmap @@@Z)
system_service.obj : error LNK2019: unresolved external symbol "public: bool __cdecl systemService::stop(void)" (?stop@systemService@@QAA_NXZ) referenced in function "public: bool __cdecl systemService::evalArgs(int &,char * *)" (?evalArgs@systemService@@QAA_NAAHPAPAD@Z)
system_service.obj : error LNK2019: unresolved external symbol "public: bool __cdecl systemService::start(void)" (?start@systemService@@QAA_NXZ) referenced in function "public: bool __cdecl systemService::evalArgs(int &,char * *)" (?evalArgs@systemService@@QAA_NAAHPAPAD@Z)
system_service.obj : error LNK2019: unresolved external symbol "public: bool __cdecl systemService::remove(void)" (?remove@systemService@@QAA_NXZ) referenced in function "public: bool __cdecl systemService::evalArgs(int &,char * *)" (?evalArgs@systemService@@QAA_NAAHPAPAD@Z)
system_service.obj : error LNK2019: unresolved external symbol "public: bool __cdecl systemService::install(void)" (?install@systemService@@QAA_NXZ) referenced in function "public: bool __cdecl systemService::evalArgs(int &,char * *)" (?evalArgs@systemService@@QAA_NAAHPAPAD@Z)
system_service.obj : error LNK2019: unresolved external symbol "public: bool __cdecl systemService::runAsService(void)" (?runAsService@systemService@@QAA_NXZ) referenced in function "public: bool __cdecl systemService::evalArgs(int &,char * *)" (?evalArgs@systemService@@QAA_NAAHPAPAD@Z)
debug\uni_net-student-mobile-wince.exe : fatal error LNK1120: 13 unresolved externals

help please!

ChrisW67
29th April 2011, 00:31
At least some of the errors will go away if you include the OpenSSL library(-ies) in the LIBS of your PRO file, since your code seems to use them. Some of the errors imply that you either do not have the QtCore and QtGui libraries in the linker command either.

rickrvo
29th April 2011, 12:14
Thx chris.

Can you please show me the line to add the openssl on the .pro? And how may I add QtCore and QtGui to the linker?

rickrvo
9th May 2011, 13:13
I've modified the .pro file and I think I've added some missing includes that only increased the number of total errors... and 52 of them are this strange one:

C:\Program Files\Microsoft Visual Studio 9.0\VC\include\xlocale(2172) : error C3861: '_ASSERTE': identifier not found

do you know what this means?

Added after 25 minutes:


I've modified the .pro file and I think I've added some missing includes that only increased the number of total errors... and 52 of them are this strange one:

C:\Program Files\Microsoft Visual Studio 9.0\VC\include\xlocale(2172) : error C3861: '_ASSERTE': identifier not found

do you know what this means?

nevermind this. Fixed


now I have this error...
error C2471: cannot update program database 'p:\uni_net-1.4.1-mobile-wince\uni_net-project\zlib\vc90.pdb'
p:\uni_net-1.4.1-mobile-wince\uni_net-project\zlib\zutil.h(26) : fatal error C1083: Cannot open include file: 'errno.h': No such file or directory

This errno.h file isn't mine... I've searched it on qt folder and it appears on a mingw include... and none on the wince libraries...

how do I fix this?