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:
[EMAIL PROTECTED]:~/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: [EMAIL PROTECTED]       |
|    http://www.bigfoot.com/~andreas_maus/    |
@---------------------------------------------@

--
Unsubscribe mailto:[EMAIL PROTECTED]
Help        mailto:[EMAIL PROTECTED]
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

Reply via email to