
ENORMOUS Pb with VC7 linker optimisation !
Quote:
> Jon
> Thanks for your answer. It seems to be the problem I had, but why, in my
> case, is it resolved by changing Linker option ?
> In article you gave me, C++ had been modified to solve the problem !
> --
> Emmanuel Derriey
> WinLog SA : http://www.winlog.com
It's difficult to know for sure why /opt:noref would hide this problem in
your project. It's possible that the way
MFC uses __declspec(selectany)
might be triggering this. What seems clear, though, is that the real issue
is a bug in the IMPLEMENT_SERIAL implementation, as described in
http://groups.google.com/groups?th=d9851ea2869caaa8. The bug is also
referenced by KB article 322621,
http://support.microsoft.com/default.aspx?scid=kb;en-us;322621.
--
Phil Lucido, Visual C++ Team
This posting is provided AS IS with no warranties, and confers no rights.