compile error : [build] main.cpp:8: undefined reference to `pallete'
example code: common.cpp
const unsigned char pallete[] = {0, 60, 100, 119};
int a = 1;
main.cpp
#include <iostream>
extern const unsigned char pallete[];
extern int a;
int main() {
std::cout << a << std::endl;
std::cout << pallete[0] << std::endl;
return 0;
}