About Clock

xiaoxiao2021-03-06  14

When you compile the program with this function on a new 2.6X core, you will find that if

GCC -LPTHEAD .... Unable to success, the reason is that there is no implementation of this function in LibPthread.so (but there is LibPthread.a)

There is also a function of this function in a librt.so librt.a.

So two options, or static link PTHREAD either plus -lrt

转载请注明原文地址:https://www.9cbs.com/read-46578.html

New Post(0)