Results 1 to 6 of 6

Thread: Link Errors

  1. #1
    Join Date
    Sep 2006
    Posts
    15
    Thanks
    2

    Unhappy Link Errors

    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:pen(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:repare(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

  2. #2
    Join Date
    Aug 2006
    Posts
    44
    Thanked 7 Times in 7 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Link Errors

    You did remember to add the Qt libraries to your linker inputs, didn't you?

  3. #3
    Join Date
    Sep 2006
    Posts
    15
    Thanks
    2

    Default Re: Link Errors

    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

  4. #4
    Join Date
    May 2006
    Location
    Germany
    Posts
    108
    Thanks
    2
    Thanked 14 Times in 12 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Link Errors

    Looks like you missed QtSql ;-)

  5. #5
    Join Date
    Sep 2006
    Posts
    15
    Thanks
    2

    Default Re: Link Errors

    Quote Originally Posted by Methedrine View Post
    Looks like you missed QtSql ;-)
    Good call. I added that in but errors still exist...

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 975 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Link Errors

    Quote Originally Posted by magikalpnoi View Post
    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)?

Similar Threads

  1. Qt Compile Errors?
    By magikalpnoi in forum Qt Programming
    Replies: 4
    Last Post: 14th September 2006, 22:18
  2. LINK : fatal error LNK1181: can't open 'delayimp.lib'
    By fcamlar in forum Installation and Deployment
    Replies: 10
    Last Post: 7th July 2006, 13:04
  3. Text Browser Link Question
    By taylor34 in forum Qt Programming
    Replies: 2
    Last Post: 20th June 2006, 19:54
  4. Problem with libmng on static link
    By jlbrd in forum Installation and Deployment
    Replies: 2
    Last Post: 10th May 2006, 22:38
  5. Linker Errors
    By MarkoSan in forum Qt Programming
    Replies: 5
    Last Post: 7th March 2006, 18:30

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.