Thanks Jan, I'm not a pure C ;-) Now it's compile on C++ project sucessfully. Thanks again for your support. Toni.
On Fri, Oct 28, 2011 at 01:13, Jan-Henrik Haukeland hauk@tildeslash.comwrote:
Hi again
I have added the C++ modifications to the repository so they will be part of the next release. Since the modifications where non-intrusive and simple (http://code.google.com/p/libzdb/source/detail?r=448#) there was no reason not to allow C++ or Obj-C(++) projects from using libzdb. Could you do me a favor, download and test libzdb, http://www.tildeslash.com/libzdb/dist/libzdb-2.10.tar.gz and let me know if it now works in your C++ project?
Ps. People that use libzdb from C need not worry as the API has not changed and no code changes are required on your part.
On Oct 27, 2011, at 6:56 PM, Jan-Henrik Haukeland wrote:
Hi Toni
I have modified the API as I described and tested that I can compile
test/select.c with g++ (on OS X). I used
g++ -o select -L../.libs/ -lzdb -I../zdb select.c
You can download the C++ compatible version from
http://www.tildeslash.com/libzdb/dist/libzdb-2.10.tar.gz
Please let me know if it works in your project. If it does, I'll keep
the changes so libzdb can be used from C++ in the future.
Best regards
On Oct 27, 2011, at 10:51 AM, Antonio Castellon - RAC wrote:
Wow, I spend too much time to refactoring the code, but it not compile
fine. :-( it's not easy to modify the problem with the typedef structs definition...or perhaps i'm wrong and it is more easy than I found.... could you check if it is more complicated? if not, I will forced to search to another library to be used on my project :-(
thanks for all toni
On Thu, Oct 27, 2011 at 06:25, Antonio Castellon - RAC <
antonio.castellon.rac@gmail.com> wrote:
Dear Jan,
First of all, thanks for your answers. I don't want to evaluate if C is
better than C++, on my particular case, I have need to integrate the libzdb into a framework of C++. Perhaps If you are interested (and if it is possible), I could modify the headers of this API according to C++ compatibility and send to the packet in order that you include (not substitute) this new header files as a complement for future users that has the same problem than me.
Very thanks for your support, Best regards Toni
-- To unsubscribe: http://www.tildeslash.com/mailman/listinfo/libzdb-general