
Sorry, I forgot to mention you have to enable precompiler headers to reproduce the problem. Project Settings -> C/C++ -> Precompiled Headers -> Automatically Generate. ====================
I had the same problem with vc 7.1.
Strange. I never had problems like this with vc7.1
It's very easy to reproduce the problem. Create project with two
source files (e.g. a.cpp and b.cpp) both with the same content:
-- begin
#include
If you add 'static' to all variables definitions in anonymous namespaces it works fine.
But anonimous namespace should do the trick itself!
Agree. Seems like compiler bug to me. Roman.