Skip to content

Instantly share code, notes, and snippets.

@mrnoda
Created July 24, 2014 20:32
Show Gist options
  • Select an option

  • Save mrnoda/37dc42cfee73350b9103 to your computer and use it in GitHub Desktop.

Select an option

Save mrnoda/37dc42cfee73350b9103 to your computer and use it in GitHub Desktop.
error: redefinition of 'std::vector<unsigned char> resources::texture'
#include "resources.h"
std::vector<std::uint8_t> resources::texture =
{
0x89, 0x50
// etc etc...
};
#ifndef RESOURCES_H
#define RESOURCES_H
#include <vector>
#include <cstdint>
namespace resources
{
static std::vector<std::uint8_t> texture;
}
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment