Results 1 to 2 of 2

Thread: QT - Visual Studio 2005

  1. #1
    Join Date
    Jul 2007
    Posts
    166
    Thanks
    25
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QT - Visual Studio 2005

    Hi,
    I am using QT-4.3.0 (trial version). I need to make a program using Visual Studio.
    I create a program in QT Which one connecting with SQLite. I can make it using QT and the program is working. I use the option "-lsqlite3" in Makefile before " make " my program for connecting with sqlite3 and it is working.

    My problum is that,
    I need to compile this program using Visual Studio - 2005. When I try to compile then some errors display like this,

    =================================
    Linking...
    Manager.obj : error LNK2019: unresolved external symbol _sqlite3_close referenced in function "public: virtual __thiscall Manager::~Manager(void)" (??1Manager@@UAE@XZ)
    Manager.obj : error LNK2019: unresolved external symbol _sqlite3_errmsg referenced in function "public: bool __thiscall Manager::createConnection(void)" (?createConnection@Manager@@QAE_NXZ)
    Manager.obj : error LNK2019: unresolved external symbol _sqlite3_open referenced in function "public: bool __thiscall Manager::createConnection(void)" (?createConnection@Manager@@QAE_NXZ)
    Manager.obj : error LNK2019: unresolved external symbol _sqlite3_get_table referenced in function "public: void __thiscall Manager::LoadTree(class QString)" (?LoadTree@Manager@@QAEXVQString@@@Z)
    debug\CCManager.exe : fatal error LNK1120: 4 unresolved externals
    ================================================== =


    When we " make " this program in qt, without giving the linking option " -lsqlite3" then it display these type of orrors. I think that it is the problum. But in V.S-2005, where did i give the linking option -lsqlite3?

    Please help me......

    Sabeesh

  2. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QT - Visual Studio 2005

    See project properties, the linker section. You have Additional Dependencies there.

    Another solution is to recreate the Qt project and select SQL( or database, whatever) in the included modules.

    Regards

Similar Threads

  1. Qt configure with msvc.net
    By jivanr in forum Installation and Deployment
    Replies: 1
    Last Post: 11th June 2007, 08:17
  2. Qt Cryptographic Architecture
    By vermarajeev in forum Qt Programming
    Replies: 6
    Last Post: 9th February 2007, 13:15
  3. Qt-4.2.2 qmake won't compile under visual studio 2005 on vista
    By moowy in forum Installation and Deployment
    Replies: 7
    Last Post: 13th January 2007, 21:06
  4. Qt 4.1.0 on Visual Studio 2005
    By nErnie in forum Installation and Deployment
    Replies: 8
    Last Post: 6th July 2006, 00:56
  5. Qt Designer & Visual Studio 2005
    By pSiCho in forum Qt Tools
    Replies: 6
    Last Post: 9th February 2006, 13:40

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.