The GNU C preprocessor will expand __FILE__ and __LINE__ in your source files to the filename, ie "test.c" (as a string), and the line number (as an integer), respectively.
So you could have something like this:
Code:
fprintf(stderr, "%s: %d: error\n", __FILE__, __LINE__);
That won't show you the line that
caused the error, but it should help you find that line more easily.
~sind