Must qualify the allocation with

Can you please post a small example program that demonstrates the problem? Note that this should not be your full sketch, but it should be enough for us to copy and paste to see ourselves.

You can find more info in this guide: