在排除一下 cpp 编译错误时, 可能需要搞清楚文件包含关系.
linux:
gcc -M showtime.c my.cpp
windows:
cl.exe /showIncludes my.cpp
参考:
- https://stackoverflow.com/questions/5834778/how-to-tell-where-a-header-file-is-included-from
- https://stackoverflow.com/questions/1137966/displaying-the-include-hierarchy-for-a-c-file-in-visual-studio