------- Comment #7 from amodra at bigpond dot net dot au 2005-11-28 23:37 ------- Hmm, yes, you are probably correct that optimization level should not help correct a header/library mismatch. Still, the fact remains that I can't reproduce your problem. For good measure, I compiled both the C source you provided and also the preprocessed file. With 4.0.2 20050823 too. (Hint, next time attach any file more than a few lines long rather than pasting inline. Your bug report is less likely to be read if comments are hidden away amongst thousands of other lines.)
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25118