When compiling my project with an image I have as a Binary File I receive the following error:
error LNK2001: unresolved external symbol "char const * const BinaryData::Untitled_png" (?Untitled_png@BinaryData@@3PEBDEB)
I have exhausted all troubleshooting within my scope of knowledge, and from what i can find on these forums. I have tried a different image of a different size and recompiled and get exactly the same error which leads me to believe the issue is with my implementation of the class but I have no idea what the problem is
I have compiled a binary data file using the BinaryBuilder program supplied in the extras folder of Juce, which has been placed with my project files. I have then written an #include for the header file in the JuceHeader.h file.
After declaring in my editor header file as such:
const char* imageData = BinaryData::Untitled_png; const int imageDatasize = BinaryData::Untitled_pngSize;
I have used two methods of implementation:
image= ImageCache::getFromMemory(imageData,imageDatasize); g.drawImageAt(image, 0, 0); image = ImageFileFormat::loadFrom(imageData, (size_t)imageDatasize); myimage.setImage(image);
Both of which give the same error.
Can anyone help with this? Thanks