Quote (carteblanche @ Sep 27 2013 06:24pm)
if you're trying to cast, use (double)
x = (double) RandNumInRange(xmin, xmax);
y = (double) RandNumInRange(ymin, ymax);
I changed it to that and got
mcint.c: In function 'main':
mcint.c:28: warning: parameter names (without types) in function declaration
/usr/bin/ld: unrecognised emulation mode: cint.c
Supported emulations: elf_i386 i386linux elf_x86_64
collect2: ld returned 1 exit status
EDITnow
/home/dlp902/courses/cs/1713/mcint.c:26: undefined reference to `RandNumInRange'
/home/dlp902/courses/cs/1713/mcint.c:27: undefined reference to `RandNumInRange'
/home/dlp902/courses/cs/1713/mcint.c:29: undefined reference to `DartHits'
/tmp/cc7DPHFu.o: In function `DartHits':
/home/dlp902/courses/cs/1713/mcint.c:43: undefined reference to `sqrt'
collect2: ld returned 1 exit status
This post was edited by GODBAAL on Sep 27 2013 06:51pm