Unix Tools Flashcards
1
Q
How would you build foo.cpp using the C++14 standard with LLVM, with all warnings, and DEBUG defined, outputting to binary ‘myapp’?
A
clang++ -std=c++14 -Wall -D DEBUG -o myapp foo.cpp
2
Q
How can you list details of the clang++ compilation (e.g. flags and paths used)?
A
Pass the -v option.
3
Q
How do you specify the include and lib dirs?
A
-I -L (/usr/local/include and /usr/local/lib are the defaults).