我对 Intel Pin 与 C++14 或其他 C++ 版本的使用有一些疑问。
我正在构建一个动态调用图 pin 工具。为了便于理解,我正在计算调用堆栈的深度。为了安全起见,我决定用std::mutex. 这让我遇到了std::mutex自 C++11 以来才可用的问题,这不是我机器中的 Intel Pin 默认值。
$ g++ -v
[...]
gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.2)
Run Code Online (Sandbox Code Playgroud)
编译命令:
$ make obj-intel64/callgraph.so
[...]
error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled …Run Code Online (Sandbox Code Playgroud)