When I am trying to create a object file of c++ code that includes pthread header file, that gives me error. How can i explicitly tell the compiler about this header.?
This is the command I run : g++ -std=c++11 test.cpp /usr/lib/x86_64-linux-gnu/libpthread.a /usr/lib/x86_64-linux-gnu/librt.a -o test.cgi. Thanks in advance.
Aucun commentaire:
Enregistrer un commentaire