Problems using reference include Headers on C++ project.
Antonio Castellon - RAC
antonio.castellon.rac at gmail.com
Fri Oct 28 16:37:10 CEST 2011
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 at tildeslash.com>wrote:
> 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 at 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.tildeslash.com/pipermail/libzdb-general/attachments/20111028/4908d228/attachment.html>
More information about the libzdb-general
mailing list