This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH, v3] Potential solution to librt issue.


Hi,

> Yes, of course.  Thanks.
> 
> As I said, the patch was completely untested (not even "make
> gcc") due to lack of time.

I was testing something similar. The problem is that in my experiments the compiler builds now, but apparently the trick doesn't work. That is, if I try to build something like the below, the link fails, -lrt is not added... Any idea why?

Paolo.

////////////

#include <ctime>

void f()
{
  timespec t;
  clock_gettime(CLOCK_REALTIME, &t);
}

int main()
{
  f();
}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]