Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. 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:

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:

Scheduled Pinned Locked Moved Installation and Deployment
2 Posts 2 Posters 873 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Q Offline
    Q Offline
    qingyuanluofeng
    wrote on last edited by
    #1

    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”
    Stop.
    NMAKE : fatal error U1077: “"d:\Program Files (x86)\Microsoft Visual Studio 10.
    0\VC\BIN\nmake.exe"”: 返回代码“0x2”
    Stop.

    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.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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 ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved