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

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


Hi!

I want to update my RRDs using C.
So I guess, I have to includ rrd.h and link the program against the
librrd. Right?
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 *);

So this shouldn't be a problem...
The problem I try to compile (rrdtest.c) is:

#include "rrd.h"

int main (int argc,char** argv)
{
  int i=rrd_update(argc,argv);
  return 0;
}

(Yeah, I know it is silly, but its just a test.)

Is there anyone out there who can give me a hint how to get rid of this
problem?

Thanks in advance...Andreas.

-- 
@---------------------------------------------@
|       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