Juergen Spitzmueller <[EMAIL PROTECTED]> writes: > Roger Mc Murtrie wrote: > >> Problem finally found to be due to boost/libs/regex/src precompiled >> headers. >> >> The problem no longer occurs when all lines of boost/libs/regex/src/ >> pch.h are commented out. >> I could not identify any particular header file causing the problem. >> The bug is only cured by commenting out ALL headers in boost/libs/ >> regex/src/pch.h. > > Build experts: is there something we can do to fix this properly in 1.5.2?
A shot in the dark: this problem typically looks like having part of the code forget to use #include <config.h>. When this happens and stdlib-debug is on, the mamory layout of std::string (for example) is not the same in different parts of LyX code. So, why is this related to pch.h? Perhaps because the first time where pch.h is used/created, <config.h> has not been loaded and the wrong options are used. I note that boost/libs/regex/src/pch.h is the only pch file that does not load any boost header, and thus no boost/config.hpp. Roger, does adding #include <boost/config.hpp> at the top of this file help? JMarc