I have been puzzling over this for the past few hours and can't quite figure it out. I am using AUCTeX 11.87 and MiKTeX 2.9 on Emacs 24.2 (obtained from Vincent Goulet with AUCTeX pre-packaged):
I am having trouble getting AUCTeX to compile my LaTeX file on windows 7 and throws me into a blank screen with a cryptic message of 'Error after last TeX file closed". Even though same file compiles on my set-up on Ubuntu 12.1. From my searching this site and Google I seem to have tracked the problem to the need to use the -file-line-error flag when pdfTeX gets called. I read through the code for AUCTeX but it gets very convoluted and I can't figure out where I would need to insert -file-line-error in any of the customizable options.
Any suggestions on how to proceed would be welcome. I would prefer not to manually change any configuration files as I came across an admonishment not to do so in the pdfTeX manual.