I'm trying to use strace to monitor all file accesses by g++ but it only seems to catch read accesses. Why isn't the file access for the output file shown?
A:
g++
is just the frontend. It pipes the output to as
directly.
Ignacio Vazquez-Abrams
2010-03-12 20:01:07
Use `-f` to trace child processes as well.
John Kugelman
2010-03-12 20:02:19
+5
A:
g++ calls other programs to do part of the build. If you want strace to trace those child processes, you need to use 'strace -f'.
JayM
2010-03-12 20:09:16