1>Renderer.obj : error LNK2001: unresolved external symbol "unsigned char const * const packed_image_data" (?packed_image_data@@3QBEB)
1>Renderer.obj : error LNK2001: unresolved external symbol "unsigned short const * const tile_mapping" (?tile_mapping@@3QBGB)
I really don't understand why this isn't working. I do the exact same thing for other data arrays and it works fine. I can get it to link if I move the include directive to Renderer.cpp, but I just want to understand what I'm doing wrong. Looking at the generated .obj, I can see that the string "packed_image_data" does not appear anywhere, which would suggest the compiler has chosen not to generate a symbol for it, even though I can see the data is actually there. So I'm just stumped.