Hi
I get following error while compiling using gcc in linux.
/usr/lib/gcc/i486-linux-gnu/4.4.3/../../../../lib/crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
/tmp/ccQKd0uk.o: In function `initweights':
weight.c
.text+0xc6): undefined reference to `get_edge'
/tmp/ccQKd0uk.o: In function `weightedSelect':
weight.c
.text+0x104): undefined reference to `ourrand'
/tmp/ccQKd0uk.o: In function `deindex':
weight.c
.text+0x225): undefined reference to `sqrt'
/tmp/ccQKd0uk.o: In function `weighted_graph':
weight.c
.text+0x5db): undefined reference to `set_edge'
weight.c
.text+0x648): undefined reference to `get_edge'
weight.c
.text+0x6f4): undefined reference to `get_edge'
collect2: ld returned 1 exit status