Jean-Marc Lasgouttes wrote: > Alfredo, please don't do this. <config.h> should be included as the > first header in all .C file, but never in .h files. > > JMarc
Finally, some words of wisdom. I though that this was the solution because of LString.h: #if 0 #ifndef _CONFIG_H #error The <config.h> header should always be included before LString.h #endif #endif and we do need LString.h in format.h. Ok, it's between #if 0 #endif but... So how can I solve the original compile problem of Edwin on gcc 3.2? I'm totally lost here. Moreover, is there a way to make g++ 2.95 to behave as strict as g++ 3.x? Thanks, Alfredo g++ -DHAVE_CONFIG_H -I. -I../../lyx-devel/src -I. -I../../lyx-devel/boost -I/usr/include -I/usr/X11R6/include -g -O -fno-exceptions -W -Wall -Winline -c -o graph.o `test -f '../../lyx-devel/src/graph.C' || echo '../../lyx-devel/src/'`../../lyx-devel/src/graph.C cc1plus: warning: changing search order for system directory "/usr/include" cc1plus: warning: as it has already been specified as a non-system directory In file included from /usr/include/c++/3.2/backward/streambuf.h:31, from ../../lyx-devel/src/support/sstream.h:40, from ../../lyx-devel/src/Lsstream.h:22, from ../../lyx-devel/src/support/lstrings.h:21, from ../../lyx-devel/src/format.h:22, from ../../lyx-devel/src/graph.C:12: /usr/include/c++/3.2/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated. In file included from ../../lyx-devel/src/Lsstream.h:22, from ../../lyx-devel/src/support/lstrings.h:21, from ../../lyx-devel/src/format.h:22, from ../../lyx-devel/src/graph.C:12: