Hi. I'm new to Qt, but have decent experience in C++. I am trying to use QSqlDatabase to connection to MSSQL over an ODBC connection. I've verified I'm linking with QtSqld4.lib and have included QtSql in my app.

The problem I am having is this:

Qt Code:
  1. Error 3 error LNK2001: unresolved external symbol "public: static char * QSqlDatabase::defaultConnection" (?defaultConnection@QSqlDatabase@@2PADA) check_db.obj restorer
  2. Error 4 error LNK2001: unresolved external symbol "private: static struct QString::Data QString::shared_null" (?shared_null@QString@@0UData@1@A) check_db.obj restorer
To copy to clipboard, switch view to plain text mode