I’m not sure how new this is but I’ve just noticed that BinaryData::getNamedResource now only appears in BinaryData.cpp. Shouldn’t the function prototype be in the header file? It looks like this at the moment:
Yeah, that’s deliberate. There was some kind of stupid compiler warning that was triggered unless the function had a prototype, and since BinaryData.cpp doesn’t actually include BinaryData.h, I just duplicated it in there.
Ok that makes sense but its only present in the cpp file, the header needs the prototype as well other wise its not visible to the rest of the project.
Not for me at least. Pulled the tip this morning (“AU plugin hosting: now…”), generate new Introjucer project, add an ogg file to it, this is the full contents of the header:
Oh, I see… I’ve mistakenly made it omit that if there aren’t any images in your resources. All my projects do contain images so I hadn’t noticed. I’ll sort that out now…