I am trying to compile a C file with the following command:
gcc simple.c -I /usr/local/bin/maple15/extern/include -L/usr/local/bin/maple15/bin.IBM_INTEL_LINUX -o simple -lmaplec -lmaple -lhf -lprocessor32 -lrt
I get the error:
/usr/local/bin/maple15/bin.IBM_INTEL_LINUX/libmaple.so: undefined reference to `clock_gettime'
collect2: ld returned 1 exit status
Why do I get an undefined reference to clock_gettime? I do have -lrt as an option to gcc. The other -l are maple related.