oetiker on master
Fix _errno inconsistent dll lin… (compare)
oetiker on master
Fix rc compiler redefinition wa… (compare)
oetiker on master
Initialize local variable junk … (compare)
oetiker on master
Include winsdkver.h for _WIN32_… (compare)
Trying to compile a very simple program:
`#include <stdio.h>
int main() {
size_t argc = 6;
char *argv[] = {
"test.rrd",
"--start",
"920804400",
"DS:speed:COUNTER:600:U:U",
"RRA:AVERAGE:0.5:1:24",
"RRA:AVERAGE:0.5:6:10"
};
return 0;
} with
gcc rrdTest.c /opt/rrdtool-1.7.2/lib/librrd.a -o rrdTestbut get all sorts of errors like: "/usr/bin/ld: /tmp/rrdbuild/rrdtool-1.7.2/src/rrd_thread_safe.c:49: undefined reference to
pthread_getspecific'" and rpn_calc undefined references. What is the right way to build this for a c program?
parseDS':
/tmp/rrdbuild/rrdtool-1.7.2/src/rrd_create.c:343: undefined reference to
g_regex_new'g_regex_match'
/usr/bin/ld: /tmp/rrdbuild/rrdtool-1.7.2/src/rrd_create.c:386: undefined reference to
g_match_info_fetch_pos'g_match_info_fetch_pos'
/usr/bin/ld: /tmp/rrdbuild/rrdtool-1.7.2/src/rrd_create.c:396: undefined reference to
g_match_info_fetch_pos'g_match_info_fetch_pos'
/usr/bin/ld: /tmp/rrdbuild/rrdtool-1.7.2/src/rrd_create.c:450: undefined reference to
g_match_info_fetch_pos'g_match_info_free'
/usr/bin/ld: /tmp/rrdbuild/rrdtool-1.7.2/src/rrd_create.c:466: undefined reference to
g_regex_unref'g_match_info_free'
/usr/bin/ld: /tmp/rrdbuild/rrdtool-1.7.2/src/rrd_create.c:466: undefined reference to
g_regex_unref'rrd_create_r2':
/tmp/rrdbuild/rrdtool-1.7.2/src/rrd_create.c:1081: undefined reference to
g_list_free_full'g_list_append'
/usr/bin/ld: /tmp/rrdbuild/rrdtool-1.7.2/src/rrd_create.c:1081: undefined reference to
g_list_free_full'g_list_free_full'
/usr/bin/ld: /tmp/rrdbuild/rrdtool-1.7.2/src/rrd_create.c:1081: undefined reference to
g_list_free_full'g_list_free_full'
/usr/bin/ld: /opt/rrdtool-1.7.2/lib/librrd.a(librrdupd_la-rrd_create.o): in function
rrd_create':g_list_free_full'
/usr/bin/ld: /opt/rrdtool-1.7.2/lib/librrd.a(librrdupd_la-rrd_create.o):/tmp/rrdbuild/rrdtool-1.7.2/src/rrd_create.c:253: more undefined references to
g_list_free_full' followrrd_create':
/tmp/rrdbuild/rrdtool-1.7.2/src/rrd_create.c:178: undefined reference to
g_list_append'