somedev
2014-10-10 16:47:04 UTC
I downloaded the Oracle Studio 12.3 kit for linux, extrated it and then ran sunstudio. after a bit of clicking around and looking at the get started guide I had "hello world" just fine. The moment I tried to use some real world code which uses clock_gettime( CLOCK_REALTIME, &some_tv ) well that was the end of the fun ride. Can not compile because I can not find where to indicate that we need -lrt in the link stage.
So, what is the mystery here?
Simply putting LIBS=-lrt in the Makefile does not work.
So where does one indicated options for the link stage or for that matter compielr option flags ? The docs at Oracle are incomprehensible and can not be used for anyong just trying to start off.
So, what is the mystery here?
Simply putting LIBS=-lrt in the Makefile does not work.
So where does one indicated options for the link stage or for that matter compielr option flags ? The docs at Oracle are incomprehensible and can not be used for anyong just trying to start off.