On Sat, 3 May 2014, Oleg Endo wrote:

> +#include <sstream>
> +#include <vector>
> +#include <algorithm>
> +
>  #include "config.h"

It's never OK to include any system headers (C or C++) before "config.h".  
config.h may define feature test macros such as _FILE_OFFSET_BITS that 
affect system headers in various ways and are only effective if defined 
before any system headers are included, and if different files in GCC are 
built with different settings of such feature test macros then they may 
expect incompatible choices of ABI for C library types.

(This is a general principle for any software using autoconf, at least if 
it uses any of the autoconf macros that can define feature test macros - 
which GCC does - not just for GCC.)

-- 
Joseph S. Myers
jos...@codesourcery.com

Reply via email to