[rrd-users] Re: Accessing a rrd-database using C?

Andreas Maus andreas_maus at bigfoot.com
Thu Mar 15 15:27:05 MET 2001


Alex van den Bogaerdt wrote:
> 
> Andreas Maus wrote:
> 
> > But if I try to compile the program gcc says:
> > root at conglom-o:~/code/c/rrd:gcc -o rrdtest -L/usr/local/rrdtool/lib
> > -I/usr/local/rrdtool/include rrdtest.c -lrrd
> >
> >  /usr/local/rrdtool/include/rrd.h:60: parse error before `*'
> >
> > Hmmm...Whats the problem?
> > Line 60 in rrd.h is:
> >
> > int  LockRRD(FILE *);
> 
> I think you should include stdio.h from your program.
Well thats it. I thought rrd.h did this. 
It seems that today is my brain-damage day... ;-)
Nevertheless many thanks. Now it works.

Andreas.

> 
> cheers,
> --
>    __________________________________________________________________
>  / alex at slot.hollandcasino.nl                  alex at ergens.op.het.net \
> | work                                                         private |
> | My employer is capable of speaking therefore I speak only for myself |
> +----------------------------------------------------------------------+
> | Technical questions sent directly to me will be nuked. Use the list. |
> +----------------------------------------------------------------------+
> | http://faq.mrtg.org/                                                 |
> | http://rrdtool.eu.org  --> tutorial                                  |
> +----------------------------------------------------------------------+

-- 
@---------------------------------------------@
|       email: andreas_maus at bigfoot.com       |
|    http://www.bigfoot.com/~andreas_maus/    |
@---------------------------------------------@

--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list