I don't know why g++ compiler gives me error when compiling this code:
typedef unsigned char BYTE;
typedef BYTE* BYTE_PTR;
const BYTE myByte[] = {0x00, 0xFF};
const BYTE_PTR myByte_ptr = myByte;
compiler gives me this error:
error: invalid conversion from ‘const BYTE* {aka const unsigned char*}’ to ‘BYTE_PTR {aka unsigned char*}’ [-fpermissive]
But this code is OK
const BYTE myByte[] = {0x00, 0xFF};
const unsigned char* myByte_ptr = myByte;