PDA

View Full Version : Link Errors



magikalpnoi
25th September 2006, 20:42
Anyone have a clue as to what is creating these linker errors???? Assume that nothing has been done...

Linking...
MSVCRT.lib(cinitexe.obj) : warning LNK4098: defaultlib 'msvcrtd.lib' conflicts with use of other libs; use /NODEFAULTLIB:library
FitcheckDB.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall QSqlDatabase::QSqlDatabase(void)" (__imp_??0QSqlDatabase@@QAE@XZ) referenced in function "public: __thiscall FitCheckDB::FitCheckDB(void)" (??0FitCheckDB@@QAE@XZ)
FitcheckDB.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall QSqlDatabase::~QSqlDatabase(void)" (__imp_??1QSqlDatabase@@QAE@XZ) referenced in function "public: __thiscall FitCheckDB::~FitCheckDB(void)" (??1FitCheckDB@@QAE@XZ)
FitcheckDB.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall QSqlError::~QSqlError(void)" (__imp_??1QSqlError@@QAE@XZ) referenced in function "private: bool __thiscall FitCheckDB::CreateConnection(void)" (?CreateConnection@FitCheckDB@@AAE_NXZ)
FitcheckDB.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class QString __thiscall QSqlError::text(void)const " (__imp_?text@QSqlError@@QBE?AVQString@@XZ) referenced in function "private: bool __thiscall FitCheckDB::CreateConnection(void)" (?CreateConnection@FitCheckDB@@AAE_NXZ)
FitcheckDB.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class QSqlError __thiscall QSqlDatabase::lastError(void)const " (__imp_?lastError@QSqlDatabase@@QBE?AVQSqlError@@X Z) referenced in function "private: bool __thiscall FitCheckDB::CreateConnection(void)" (?CreateConnection@FitCheckDB@@AAE_NXZ)
FitcheckDB.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __thiscall QSqlDatabase::open(void)" (__imp_?open@QSqlDatabase@@QAE_NXZ) referenced in function "private: bool __thiscall FitCheckDB::CreateConnection(void)" (?CreateConnection@FitCheckDB@@AAE_NXZ)
FitcheckDB.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall QSqlDatabase::setPort(int)" (__imp_?setPort@QSqlDatabase@@QAEXH@Z) referenced in function "private: bool __thiscall FitCheckDB::CreateConnection(void)" (?CreateConnection@FitCheckDB@@AAE_NXZ)
FitcheckDB.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall QSqlDatabase::setHostName(class QString const &)" (__imp_?setHostName@QSqlDatabase@@QAEXABVQString@@ @Z) referenced in function "private: bool __thiscall FitCheckDB::CreateConnection(void)" (?CreateConnection@FitCheckDB@@AAE_NXZ)
FitcheckDB.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall QSqlDatabase::setPassword(class QString const &)" (__imp_?setPassword@QSqlDatabase@@QAEXABVQString@@ @Z) referenced in function "private: bool __thiscall FitCheckDB::CreateConnection(void)" (?CreateConnection@FitCheckDB@@AAE_NXZ)
FitcheckDB.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall QSqlDatabase::setUserName(class QString const &)" (__imp_?setUserName@QSqlDatabase@@QAEXABVQString@@ @Z) referenced in function "private: bool __thiscall FitCheckDB::CreateConnection(void)" (?CreateConnection@FitCheckDB@@AAE_NXZ)
FitcheckDB.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall QSqlDatabase::setDatabaseName(class QString const &)" (__imp_?setDatabaseName@QSqlDatabase@@QAEXABVQStri ng@@@Z) referenced in function "private: bool __thiscall FitCheckDB::CreateConnection(void)" (?CreateConnection@FitCheckDB@@AAE_NXZ)
FitcheckDB.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class QSqlDatabase __cdecl QSqlDatabase::addDatabase(class QString const &,class QString const &)" (__imp_?addDatabase@QSqlDatabase@@SA?AV1@ABVQStrin g@@0@Z) referenced in function "private: bool __thiscall FitCheckDB::CreateConnection(void)" (?CreateConnection@FitCheckDB@@AAE_NXZ)
FitcheckDB.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static char * QSqlDatabase::defaultConnection" (__imp_?defaultConnection@QSqlDatabase@@2PADA)
FitcheckDB.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) protected: void * __thiscall Q3GList::first(void)" (__imp_?first@Q3GList@@IAEPAXXZ) referenced in function "public: class IntActModData * __thiscall Q3PtrList::first(void)" (?first@?$Q3PtrList@VIntActModData@@@@QAEPAVIntAct ModData@@XZ)
IntData.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) protected: void * __thiscall Q3GList::first(void)" (__imp_?first@Q3GList@@IAEPAXXZ)
FitcheckDB.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) protected: void * __thiscall Q3GList::last(void)" (__imp_?last@Q3GList@@IAEPAXXZ) referenced in function "public: class IntActModData * __thiscall Q3PtrList::last(void)" (?last@?$Q3PtrList@VIntActModData@@@@QAEPAVIntActM odData@@XZ)
FitcheckDB.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) protected: void * __thiscall Q3GList::next(void)" (__imp_?next@Q3GList@@IAEPAXXZ) referenced in function "public: class IntActModData * __thiscall Q3PtrList::next(void)" (?next@?$Q3PtrList@VIntActModData@@@@QAEPAVIntActM odData@@XZ)
IntData.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) protected: void * __thiscall Q3GList::next(void)" (__imp_?next@Q3GList@@IAEPAXXZ)
FitcheckDB.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall QSqlQuery::~QSqlQuery(void)" (__imp_??1QSqlQuery@@QAE@XZ) referenced in function "private: int __thiscall FitCheckDB::ActiveModelDBStatus(struct qryData *)" (?ActiveModelDBStatus@FitCheckDB@@AAEHPAUqryData@@ @Z)
FitcheckDB.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __thiscall QSqlQuery::isActive(void)const " (__imp_?isActive@QSqlQuery@@QBE_NXZ) referenced in function "private: int __thiscall FitCheckDB::ActiveModelDBStatus(struct qryData *)" (?ActiveModelDBStatus@FitCheckDB@@AAEHPAUqryData@@ @Z)
FitcheckDB.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class QVariant __thiscall QSqlQuery::boundValue(int)const " (__imp_?boundValue@QSqlQuery@@QBE?AVQVariant@@H@Z) referenced in function "private: int __thiscall FitCheckDB::ActiveModelDBStatus(struct qryData *)" (?ActiveModelDBStatus@FitCheckDB@@AAEHPAUqryData@@ @Z)
FitcheckDB.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class QSqlError __thiscall QSqlQuery::lastError(void)const " (__imp_?lastError@QSqlQuery@@QBE?AVQSqlError@@XZ) referenced in function "private: int __thiscall FitCheckDB::ActiveModelDBStatus(struct qryData *)" (?ActiveModelDBStatus@FitCheckDB@@AAEHPAUqryData@@ @Z)
FitcheckDB.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __thiscall QSqlQuery::exec(void)" (__imp_?exec@QSqlQuery@@QAE_NXZ) referenced in function "private: int __thiscall FitCheckDB::ActiveModelDBStatus(struct qryData *)" (?ActiveModelDBStatus@FitCheckDB@@AAEHPAUqryData@@ @Z)
FitcheckDB.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall QSqlQuery::bindValue(int,class QVariant const &,class QFlags)" (__imp_?bindValue@QSqlQuery@@QAEXHABVQVariant@@V?$ QFlags@W4ParamTypeFlag@QSql@@@@@Z) referenced in function "private: int __thiscall FitCheckDB::ActiveModelDBStatus(struct qryData *)" (?ActiveModelDBStatus@FitCheckDB@@AAEHPAUqryData@@ @Z)
FitcheckDB.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __thiscall QSqlQuery::prepare(class QString const &)" (__imp_?prepare@QSqlQuery@@QAE_NABVQString@@@Z) referenced in function "private: int __thiscall FitCheckDB::ActiveModelDBStatus(struct qryData *)" (?ActiveModelDBStatus@FitCheckDB@@AAEHPAUqryData@@ @Z)
FitcheckDB.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall QSqlQuery::QSqlQuery(class QSqlDatabase)" (__imp_??0QSqlQuery@@QAE@VQSqlDatabase@@@Z) referenced in function "private: int __thiscall FitCheckDB::ActiveModelDBStatus(struct qryData *)" (?ActiveModelDBStatus@FitCheckDB@@AAEHPAUqryData@@ @Z)
FitcheckDB.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall QSqlDatabase::QSqlDatabase(class QSqlDatabase const &)" (__imp_??0QSqlDatabase@@QAE@ABV0@@Z) referenced in function "private: int __thiscall FitCheckDB::ActiveModelDBStatus(struct qryData *)" (?ActiveModelDBStatus@FitCheckDB@@AAEHPAUqryData@@ @Z)
IntData.obj : error LNK2019: unresolved external symbol "public: void __thiscall IntData::SetAllIntersectColors(void)" (?SetAllIntersectColors@IntData@@QAEXXZ) referenced in function "public: void __thiscall IntData::SetActiveColor(class QColor)" (?SetActiveColor@IntData@@QAEXVQColor@@@Z)
IntData.obj : error LNK2001: unresolved external symbol "protected: virtual int __thiscall Q3GList::compareItems(void *,void *)" (?compareItems@Q3GList@@MAEHPAX0@Z)
IntData.obj : error LNK2001: unresolved external symbol "protected: virtual class QDataStream & __thiscall Q3GList::write(class QDataStream &,void *)const " (?write@Q3GList@@MBEAAVQDataStream@@AAV2@PAX@Z)
IntData.obj : error LNK2001: unresolved external symbol "protected: virtual class QDataStream & __thiscall Q3GList::read(class QDataStream &,void * &)" (?read@Q3GList@@MAEAAVQDataStream@@AAV2@AAPAX@Z)
IntData.obj : error LNK2001: unresolved external symbol "protected: virtual void * __thiscall Q3PtrCollection::newItem(void *)" (?newItem@Q3PtrCollection@@MAEPAXPAX@Z)
IntData.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) protected: __thiscall Q3GList::Q3GList(void)" (__imp_??0Q3GList@@IAE@XZ) referenced in function "public: __thiscall Q3PtrList::Q3PtrList(void)" (??0?$Q3PtrList@VIntActModData@@@@QAE@XZ)
Debug\\FitCheck.exe : fatal error LNK1120: 40 unresolved externals

Eldritch
25th September 2006, 20:44
You did remember to add the Qt libraries to your linker inputs, didn't you? ;)

magikalpnoi
25th September 2006, 20:46
Yes I did, good question though...These are the ones included

c:\Qt\4.2.0-rc1\lib\qtmaind.lib
c:\Qt\4.2.0-rc1\lib\QtGuid4.lib
c:\Qt\4.2.0-rc1\lib\QtCored4.lib
oci.lib
opengl32.lib
glu32.lib
kernel32.lib
user32.lib
gdi32.lib
comdlg32.lib
advapi32.lib
shell32.lib
ole32.lib
oleaut32.lib
uuid.lib
imm32.lib
winmm.lib
wsock32.lib
winspool.lib
delayimp.lib

Methedrine
25th September 2006, 20:51
Looks like you missed QtSql ;-)

magikalpnoi
25th September 2006, 20:56
Looks like you missed QtSql ;-)

Good call. I added that in but errors still exist...

jacek
25th September 2006, 22:04
I added that in but errors still exist...
Do you still get error messages about missing symbols from QtSql module or maybe they're gone, but different ones still left (for example only those regarding Qt3Support module)?