Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-28088

qsql_oci.h: Unable to locate header file qsqlcachedresult_p.h

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P3: Somewhat important
    • 5.1.0
    • 5.0.0 RC 1
    • SQL Support
    • None
    • Qt 5.0.0 Beta 2
      QtCreator 2.6.0
      Microsoft Visual Studio 2010 Ultimate
      Microsoft Windows 7 Professional x64
      64-bit Architecture
      8GB RAM
      Oracle 11 R2 Express 32-bit
    • 1580f558472e2c37936fe817fc546a79a8b0a9a5 1ee11474622e7da068fb1cd26f509ed10848a3b5

    Description

      When I try to register the QOCIDriver I get the following error:

      "C1083: Cannot open include file: 'QtSql/private/qsqlcachedresult_p.h': No such file or directory"

      Please find attached my source code of my small test project.

      I have located the header file "qsqlcachedresult_p.h" at the following location:

      "5.0.0-beta2\msvc2010\include\QtSql\5.0.0\QtSql\private"

      But when I change the #include in qsql_oci.h to

      #include <QtSql/5.0.0/QtSql/private/qsqlcachedresult_p.h>

      I get the following linker errors:

      main.obj:-1: error: LNK2019: unresolved external symbol "_declspec(dllimport) public: __thiscall QOCIDriver::QOCIDriver(class QObject *)" (imp??0QOCIDriver@@QAE@PAVQObject@@@Z) referenced in function "public: virtual class QSqlDriver * __thiscall QSqlDriverCreator<class QOCIDriver>::createObject(void)const " (?createObject@?$QSqlDriverCreator@VQOCIDriver@@@@UBEPAVQSqlDriver@@XZ)
      main.obj:-1: error: LNK2001: unresolved external symbol "public: virtual struct QMetaObject const * __thiscall QOCIDriver::metaObject(void)const " (?metaObject@QOCIDriver@@UBEPBUQMetaObject@@XZ)
      main.obj:-1: error: LNK2001: unresolved external symbol "public: virtual void * __thiscall QOCIDriver::qt_metacast(char const *)" (?qt_metacast@QOCIDriver@@UAEPAXPBD@Z)
      main.obj:-1: error: LNK2001: unresolved external symbol "public: virtual int __thiscall QOCIDriver::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall@QOCIDriver@@UAEHW4Call@QMetaObject@@HPAPAX@Z)
      main.obj:-1: error: LNK2001: unresolved external symbol "protected: virtual bool __thiscall QOCIDriver::beginTransaction(void)" (?beginTransaction@QOCIDriver@@MAE_NXZ)
      main.obj:-1: error: LNK2001: unresolved external symbol "protected: virtual bool __thiscall QOCIDriver::commitTransaction(void)" (?commitTransaction@QOCIDriver@@MAE_NXZ)
      main.obj:-1: error: LNK2001: unresolved external symbol "protected: virtual bool __thiscall QOCIDriver::rollbackTransaction(void)" (?rollbackTransaction@QOCIDriver@@MAE_NXZ)
      main.obj:-1: error: LNK2001: unresolved external symbol "public: virtual class QStringList __thiscall QOCIDriver::tables(enum QSql::TableType)const " (?tables@QOCIDriver@@UBE?AVQStringList@@W4TableType@QSql@@@Z)
      main.obj:-1: error: LNK2001: unresolved external symbol "public: virtual class QSqlIndex __thiscall QOCIDriver::primaryIndex(class QString const &)const " (?primaryIndex@QOCIDriver@@UBE?AVQSqlIndex@@ABVQString@@@Z)
      main.obj:-1: error: LNK2001: unresolved external symbol "public: virtual class QSqlRecord __thiscall QOCIDriver::record(class QString const &)const " (?record@QOCIDriver@@UBE?AVQSqlRecord@@ABVQString@@@Z)
      main.obj:-1: error: LNK2001: unresolved external symbol "public: virtual class QString __thiscall QOCIDriver::formatValue(class QSqlField const &,bool)const " (?formatValue@QOCIDriver@@UBE?AVQString@@ABVQSqlField@@_N@Z)
      main.obj:-1: error: LNK2001: unresolved external symbol "public: virtual class QString __thiscall QOCIDriver::escapeIdentifier(class QString const &,enum QSqlDriver::IdentifierType)const " (?escapeIdentifier@QOCIDriver@@UBE?AVQString@@ABV2@W4IdentifierType@QSqlDriver@@@Z)
      main.obj:-1: error: LNK2001: unresolved external symbol "public: virtual class QVariant __thiscall QOCIDriver::handle(void)const " (?handle@QOCIDriver@@UBE?AVQVariant@@XZ)
      main.obj:-1: error: LNK2001: unresolved external symbol "public: virtual bool __thiscall QOCIDriver::hasFeature(enum QSqlDriver::DriverFeature)const " (?hasFeature@QOCIDriver@@UBE_NW4DriverFeature@QSqlDriver@@@Z)
      main.obj:-1: error: LNK2001: unresolved external symbol "public: virtual void __thiscall QOCIDriver::close(void)" (?close@QOCIDriver@@UAEXXZ)
      main.obj:-1: error: LNK2001: unresolved external symbol "public: virtual class QSqlResult * __thiscall QOCIDriver::createResult(void)const " (?createResult@QOCIDriver@@UBEPAVQSqlResult@@XZ)
      main.obj:-1: error: LNK2001: unresolved external symbol "public: virtual bool __thiscall QOCIDriver::open(class QString const &,class QString const &,class QString const &,class QString const &,int,class QString const &)" (?open@QOCIDriver@@UAE_NABVQString@@000H0@Z)
      main.obj:-1: error: LNK2019: unresolved external symbol "_declspec(dllimport) public: virtual __thiscall QOCIDriver::~QOCIDriver(void)" (imp1QOCIDriver@@UAE@XZ) referenced in function "public: virtual void * __thiscall QOCIDriver::`scalar deleting destructor'(unsigned int)" (_GQOCIDriver@@UAEPAXI@Z)

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            mabrand Mark Brand
            polla_tosen@yahoo.com Polla Tosen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes