lundi 23 mai 2016

How to compile c++ file with header file

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