[rrd-users] Built .NET 2005 VC++ RRD program not working - crashes
Mark Easton
mark.easton at azurebell.co.nz
Thu Feb 8 21:26:25 CET 2007
I built \rrdtool-1.2.19 to produce rrd.lib.
In my new project I linked in libpng.lib, zlib.lib, art_lgpl_2.lib,
freetype.lib, and rrd.lib.
Here is my very basic code:
// gopher_test.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "rrd.h"
int _tmain(int argc, _TCHAR* argv[])
{
char *opts[] = { "net.rrd", "–step", "300", "–start", 0,
"DS:input:COUNTER:600:U:U",
"DS:output:COUNTER:600:U:U",
"RRA:AVERAGE:0.5:1:600",
"RRA:AVERAGE:0.5:6:700",
"RRA:AVERAGE:0.5:24:775",
"RRA:AVERAGE:0.5:288:797",
"RRA:MAX:0.5:1:600",
"RRA:MAX:0.5:6:700",
"RRA:MAX:0.5:24:775",
"RRA:MAX:0.5:288:797"
};
int ret = rrd_create(14, opts );
if( ret == 0 )
{
printf("RRD error creating net.rrd: %s\n", rrd_get_error());
}
}
It results in:
1>------ Rebuild All started: Project: gopher_test, Configuration: Debug
Win32 ------
1>Deleting intermediate and output files for project 'gopher_test',
configuration 'Debug|Win32'
1>Compiling...
1>stdafx.cpp
1>Compiling...
1>gopher_test.cpp
1>Compiling manifest to resources...
1>Linking...
1>LINK : E:\Projects\gopher_test\Debug\gopher_test.exe not found or not
built by the last incremental link; performing full link
1>Embedding manifest...
1>Build log was saved at
"file://e:\Projects\gopher_test\gopher_test\Debug\BuildLog.htm"
1>gopher_test - 0 error(s), 0 warning(s)
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========
But when I run gopher_test.exe it just craps out.
Any ideas,
Mark
--
View this message in context: http://www.nabble.com/Built-.NET-2005-VC%2B%2B-RRD-program-not-working---crashes-tf3195828.html#a8873550
Sent from the RRDTool - User mailing list archive at Nabble.com.
More information about the rrd-users
mailing list