Results 1 to 8 of 8

Thread: Cassandra DB using libQtCassandra

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #8
    Join Date
    Feb 2013
    Posts
    12
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Cassandra DB using libQtCassandra

    I'm closed libQtCassandy topic, because I'm wrote the mail to the developers of this project and they rewrote that the library should work on Windows, but running it on Windows requires a lot of work.

    I found another way to connect c++ program to Cassanda. Looks in this page: http://thrift.apache.org/ Cassandra/interface/cassandra.thrift after generate contains set of classes and objects to Cassandra. Then I'm used the Cygwin to compile Thrift, hence I have the header files for Windows. Then I'm downloaded the Boost library and copied these files to the Thrift sources and compiled libthrift.lib using MSVC. And then I'm compiled the two files *. lib with same boost files. Then I'm included *.lib files for Qt project. A header files I've connected like in this page: http://wiki.apache.org/cassandra/Thr...ples#C.2B-.2B-.

    Everything looks good. The program connects to the database - when the server is down program throws exceptions. But, in this line:
    Qt Code:
    1. CassandraClient cass(p);
    To copy to clipboard, switch view to plain text mode 
    I get 43 errors: "unresolved external symbol ..." and all involve methods from CassandraClient object. The declarations of these methods are in Cassandra.h file and in Cassandra.cpp their definitions. I don't know why it didn't see these definitions.
    Last edited by kalwi; 15th February 2013 at 08:49.

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
  •  
Qt is a trademark of The Qt Company.