I am trying to create a new library that uses another existing library.
The original library declares a way to create an object called Multiserial that can be created in the main file and the program is correctly compiled.
However, when I include this library in a second one and I try to build the program, then the IDE returns an error that says:
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Print.h:27:0, from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Stream.h:26, from MultiSerial.h:17, from maqMODBUSmst.h:5, from maqMODBUSmst.c:1: C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Printable.h:25:1: error: unknown type name 'class' class Print;
Even if the library only contains the include of the first one.