Rename src/debug/debug.h to not conflict with GNU ISO C++ Library
memcache0 opened this issue · comments
I'm using MinGW on Windows with Code::Blocks as the IDE. When I compile the RE2C project, it will go wrong with src/compile.cc and main.cc. The reason is, RE2C has a header named src/debug/debug.h, while GNU ISO C++ Library has a standard header named debug/debug.h. When compile other files, it is OK. But for src/compile.cc and main.cc, the compiler needs to read debug/debug.h for system headers, unfortunately there is one along with src/compile.cc and main.cc in dir src/debug, so the system debug/debug.h cannot be read properly.
My simple modification is to move src/compile.cc and main.cc to a sub dir src/main. But I think it is better to rename src/debug/debug.h to something like src/debug/re2c_debug.h, so that it won't conflict with system headers by chance.
I'd say such a failure exposes some misconfiguration in the build environment. Can you attach example config.log and build log that demonstrates the failure?
Note that re2c
does not include "debug/debug.h"
directly anywhere. It always uses #include "src/debug/debug.h"
.
Also please specify the steps how you build re2c.
@memcache0 can you provide above details?
Closing as NEEDINFO.