Important: Please read the Qt Code of Conduct -

MsSQL QT 5.0.0 MSVC 2010

  • Hello and good Evening,

    I have problems with compiling problems MsSQL inside.

    I already compiled MySQL and put them into "C:\Qt\Qt5.0.0\5.0.0\msvc2010\plugins\sqldrivers".

    Now i try to compile a program with following content.

    @#include "dayz.h"
    #include <QApplication>
    #include <QtSql/QMYSQLDriver>

    int main(int argc, char *argv[])
    QApplication a(argc, argv);
    DayZ w;;
    QSqlDatabase db;

    return a.exec&#40;&#41;;




    Project created by QtCreator 2013-01-12T22:26:52


    QT += core gui sql

    greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

    TARGET = DayZ_Tool
    TEMPLATE = app

    SOURCES += main.cpp

    QTPLUGIN += qsqlmysql

    CONFIG += qsqlmysql

    HEADERS += dayz.h

    FORMS += dayz.ui

    When compiling I get following error:
    52: Fehler:C1083: Datei (Include) kann nicht ge”ffnet werden: "mysql.h": No such file or directory

    Why the software wants to launce mysql.h?? I already compiled the mysql.dll datas


Log in to reply