I think I found the issue, I just don't know how to fix it. gcc -pg main.c works fine but g++ -pg main.cpp compiles but doesn't output a gmon.out file. For some reason a C file will give us a profile but a C++ file wont.
I think I found the issue, I just don't know how to fix it. gcc -pg main.c works fine but g++ -pg main.cpp compiles but doesn't output a gmon.out file. For some reason a C file will give us a profile but a C++ file wont.
Bookmarks