2

Why -lrt option is used while compiling message queue code?Is rt is for real time library?

g++ messageq.cpp -lrt
  • 1
    please refer to [this question](http://stackoverflow.com/questions/6754032/what-library-does-ld-option-lrt-refer-to-bionic-libc) – Deng Haijun Apr 11 '16 at 14:47

1 Answers1

4

To link-in librt.a or librt.so, which is the Realtime Extensions library.

trojanfoe
  • 120,358
  • 21
  • 212
  • 242