GCC: Too Many Open Files

closed account (zb0S216C)
I've just compiled my test console and GCC overrode my std::cout's and printed this:

gmon.out: Too many open files

I don't know where to start with this one. Has anybody encountered this before? If you're a victim of this error, can you provide a solution?

Thanks.

Wazzak
Last edited on
Just a guess here, but are you opening too many files?
closed account (zb0S216C)
Thanks for the reply, Disch.

I wasn't opening any files. Regardless, fstream wasn't even included.

Wazzak
> gmon.out: Too many open files

AFAIK, gmon.out is the default name for profiler call graph output file. Are you compiling with the -pg or -p switches? If so, turn it off (unless it is your intent to run gprof on the profiler output).

closed account (zb0S216C)
Yes, the profile was on... for some reason. I've turned it off and now it doesn't show. Thanks, JLBorges. Just out of curiosity, I attempted to open the file the compiler generated, and it wasn't readable. What goods' tha'?

Wazzak
It is a binary file. gprof is the tool that knows how to interpret the profile information.
The details are here: http://www.cs.utah.edu/dept/old/texinfo/as/gprof.html

closed account (zb0S216C)
Thanks again, JLBorges.

Wazzak
Topic archived. No new replies allowed.