This has been discussed here, before. No conclusions drawn/posted as to why, but a workaround was defined.
You need to put the template stuff in a .h file, and include that in the sketch.
This has been discussed here, before. No conclusions drawn/posted as to why, but a workaround was defined.
You need to put the template stuff in a .h file, and include that in the sketch.