I also found a reference that mentions a different compiler option that fixes VC7. You can use /Zc:forscope which won't create the library issues but will make the for scope rules adhere to the language standard. I did check and this option is not available in VS6 but I didn't verify VS7. Jay