[prev in list] [next in list] [prev in thread] [next in thread]
List: rrd-users
Subject: Re: [rrd-users] rrdtool with C++
From: Khanh Nguyen <khanhnguyen.qk () gmail ! com>
Date: 2012-06-04 22:52:48
Message-ID: CALdR0eLY=BxTDAEbjmad9-Bk0ayruUanheVfkWEFBSuYr-22tQ () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Thanks a lot for your help!
On Sun, Jun 3, 2012 at 3:20 PM, Benny Baumann <BenBE@geshi.org> wrote:
> Hi,
>
> Am 31.05.2012 20:24, schrieb Khanh Nguyen:
> > Hi,
> >
> > I'm a student and trying to use rrdtool for my project on C++. I'm
> > having a hard time to figure out where I can get rrdtool library.
> http://oss.oetiker.ch/rrdtool/download.en.html
>
> For Debian/Ubuntu you need the librrd*-dev packages alongside the
> rrdtool main package in order to compile software which uses RRDTool.
> > I have researched the mailing archive but some links on the threads
> > are outdated. For the same reason, I had outdated rrdwrap.h and rrdwrap.c
> Cannot reproduce ;-)
> > Can anyone show me where to grab the latest version of rrdtool library
> > for C++?
> Just use the C version. When including into your cpp file be sure to do
> something like this:
>
> extern "C" {
> #include <rrdtool header files>
> }
>
> Although this shouldn't be necessary (the additional extern "C" block).
> If it is maybe Tobias should consider adding this block inside the
> header files of the distribution for all exported function and variable
> declarations.
> > If you can also provide me a tutorial link for C++ or C, it would be
> > awesome.
> Not directly a tutorial itself, but the bindings for RRDTool I updated
> have a small example of what to pass to every function. You can find
> everything at http://blog.benny-baumann.de/?p=1192 (German).
>
> @Tobias: Would be nice if you could update the link on alternate
> bindings on your homepage as IMHO the binding you referenced on the
> homepage is outdated and doesn't work with PHP 5.
> >
> > Any help is really appreciated.
> Hope this information gets you started.
> >
> > --
> > Khanh Nguyen.
> Best regards,
> BenBE.
>
> P.S.: Sorry, forgot to reply on-list.
>
>
--
Khanh Nguyen.
[Attachment #5 (text/html)]
Thanks a lot for your help!<br><br><div class="gmail_quote">On Sun, Jun 3, 2012 at \
3:20 PM, Benny Baumann <span dir="ltr"><<a href="mailto:BenBE@geshi.org" \
target="_blank">BenBE@geshi.org</a>></span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"> <div class="im">Hi,<br>
<br>
Am <a href="tel:31.05.2012%2020" value="+13105201220">31.05.2012 20</a>:24, schrieb \
Khanh Nguyen:<br> </div><div class="im">> Hi,<br>
><br>
> I'm a student and trying to use rrdtool for my project on C++. I'm<br>
> having a hard time to figure out where I can get rrdtool library.<br>
</div><div class="im"><a href="http://oss.oetiker.ch/rrdtool/download.en.html" \
target="_blank">http://oss.oetiker.ch/rrdtool/download.en.html</a><br> <br>
For Debian/Ubuntu you need the librrd*-dev packages alongside the<br>
rrdtool main package in order to compile software which uses RRDTool.<br>
</div><div class="im">> I have researched the mailing archive but some links on \
the threads<br> > are outdated. For the same reason, I had outdated rrdwrap.h and \
rrdwrap.c<br> </div>Cannot reproduce ;-)<br>
<div class="im">> Can anyone show me where to grab the latest version of rrdtool \
library<br> > for C++?<br>
</div><div class="im">Just use the C version. When including into your cpp file be \
sure to do<br> something like this:<br>
<br>
extern "C" {<br>
#include <rrdtool header files><br>
}<br>
<br>
Although this shouldn't be necessary (the additional extern "C" \
block).<br> If it is maybe Tobias should consider adding this block inside the<br>
header files of the distribution for all exported function and variable<br>
declarations.<br>
</div><div class="im">> If you can also provide me a tutorial link for C++ or C, \
it would be<br> > awesome.<br>
</div><div class="im">Not directly a tutorial itself, but the bindings for RRDTool I \
updated<br> have a small example of what to pass to every function. You can find<br>
everything at <a href="http://blog.benny-baumann.de/?p=1192" \
target="_blank">http://blog.benny-baumann.de/?p=1192</a> (German).<br> <br>
@Tobias: Would be nice if you could update the link on alternate<br>
bindings on your homepage as IMHO the binding you referenced on the<br>
homepage is outdated and doesn't work with PHP 5.<br>
><br>
</div><div class="im">> Any help is really appreciated.<br>
</div><div class="im">Hope this information gets you started.<br>
><br>
> --<br>
> Khanh Nguyen.<br>
Best regards,<br>
BenBE.<br>
<br>
</div>P.S.: Sorry, forgot to reply on-list.<br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Khanh Nguyen.<br>
_______________________________________________
rrd-users mailing list
rrd-users@lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic