Name conflict with other libraries for const String ERROR
Pronoe opened this issue · comments
Bootstrapper library uses a const STRING ERROR
which is a very common name (définitions in Helpers.h, set value in Helspers.cpp, used in BootstrapManager.cpp and may be in the application code).
I am using also the ezTime library which use the same name ERROR in an enum list.
The compiler raises an error related to the reuse of an existing name, and this, whatever is the order of the #include directives of the 2 libraries.
I solved provisionally this issue by renaming ERROR in the Bootstrapper library but this make testing of the committed modifications more difficult.
I have now taken the option to modify the ERROR name in the ezTime library.
In both case, this is not clean.
Could you recommend a better solution as using namespace or anything else ?
yes a namespace would be the best way to do it...
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days