Nominate our 2022 Qt Champions!

Under Win7 64bit and Visual Studio 2010 condition,I use Qt5.0.1 and qt-vs-addin1.2.0 to compile MySql drivers,report errors:

  • The errors are as bellows:
    qsql_mysql.obj : error LNK2019: 无法解析的外部符号 _mysql_stmt_reset@4,该符号在
    函数 "protected: virtual bool __thiscall QMYSQLResult::exec(void)" (?exec@QMYSQL
    Result@@MAE_NXZ) 中被引用
    ........\plugins\sqldrivers\qsqlmysql.dll : fatal error LNK1120: 50 个无法解
    NMAKE : fatal error U1077: “"d:\Program Files (x86)\Microsoft Visual Studio 10.
    0\VC\BIN\link.EXE"”: 返回代码“0x460”
    NMAKE : fatal error U1077: “"d:\Program Files (x86)\Microsoft Visual Studio 10.
    0\VC\BIN\nmake.exe"”: 返回代码“0x2”

    I trid many ways by step by step do the every compiled MySql driver step,but I can't compile MySql driver sucessfully.
    Wish good ways.Thank you.

  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Missing symbols means that your are not linking to the proper libraries. How did you install MySQL, where did you install it exactly ? What parameters did you set when calling qmake before building the module ?

Log in to reply