Hi, I'm trying to profile my graphic program which uses OpenGL. The program worked correctly when I compile it without -pg flag. However, when I compile it using -pg flag, it doesn't work correctly (i.e., it doesn't read the obj file correctly, hence, doesn't display the image). Is there a known bug with the -pg flag with OpenGL? This is my first time using gprof and gcc -pg so I don't know if the bug is in my program or from the -pg flag. Thanks, Armin