Results 1 to 4 of 4

Thread: how to read .dbf-Files?

  1. #1
    Join Date
    Mar 2014
    Posts
    18
    Thanks
    3
    Qt products
    Qt3 Qt4 Qt/Embedded

    Default how to read .dbf-Files?

    Hi All,

    i need to get on with .dbf-Files (dBase IV). I found the library on https://code.google.com/p/qdbf/. But when i try to implement it in my project, I get a lot of errors.
    When I only write the part: QDbf::QDbfTable table;

    and compile it, I get the followoing Errors:

    Qt Code:
    1. In function `ZN7layout1C2EP7QWidget':
    2. undefined reference to `_imp___ZN4QDbf9QDbfTableC1Ev'
    3. undefined reference to `_imp___ZN4QDbf9QDbfTableD1Ev'
    To copy to clipboard, switch view to plain text mode 

    and so on (these are 140Errors)

    Did anyone had the same problem?

    Can anyone help me reading the *.dbf-Files?

    Thanks

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,419
    Thanks
    37
    Thanked 1,546 Times in 1,496 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: how to read .dbf-Files?

    Have you added the library to the LIBS variable in your .pro file?

    Cheers,
    _

  3. The following user says thank you to anda_skoa for this useful post:

    nernst (26th May 2014)

  4. #3
    Join Date
    Nov 2011
    Posts
    79
    Thanks
    5
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: how to read .dbf-Files?

    yes, as anda_skoa says you include *.h files in your project but not link it with library itself.
    or you can include all files from dbf folder. I use dbf library in this way in one of my projects https://github.com/folibis/qsimplespatial

  5. The following user says thank you to folibis for this useful post:

    nernst (26th May 2014)

  6. #4
    Join Date
    Mar 2014
    Posts
    18
    Thanks
    3
    Qt products
    Qt3 Qt4 Qt/Embedded

    Default Re: how to read .dbf-Files?

    Hi,
    thanks for your suggests.

    @anda_skoa: I think this might be the problem. I didn't add the libraries, but also because I don't know how and which of the files the libraries are.

    @folibis: I tried to add simply all files of the dbf-folder, but had the same problem with the references.

    I'll look at folibis' project and hopefully it will help me.


    Added after 1 25 minutes:


    Hi,

    now it works. Thank you so much for your helpful answers.

    I just had to add the include of the qdbf in the *pro-File and make a clear of the project, so that the moc-Files were remade. Now I can read my DBF-Files.

    What a nice monday :
    Last edited by nernst; 26th May 2014 at 13:25.

Similar Threads

  1. how to use api to read excel files(.xl,xls)
    By xiongxiongchuan in forum Qt Programming
    Replies: 9
    Last Post: 15th June 2010, 01:38
  2. Read .ini files
    By paolom in forum Qt Programming
    Replies: 7
    Last Post: 9th November 2009, 18:18
  3. Replies: 12
    Last Post: 17th June 2009, 06:34
  4. QT read files
    By Majdi in forum Newbie
    Replies: 3
    Last Post: 21st January 2009, 10:17
  5. Read files PDF
    By henriquez0 in forum Qt Programming
    Replies: 3
    Last Post: 31st December 2006, 01:20

Tags for this Thread

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.