c++ invalid conversion from void * to char* code example
Example: error: invalid conversion from ‘void*’ to ‘char*’ [-fpermissive] mmap
data = static_cast(mmap((caddr_t)0, bytesToTransfer, PROT_READ, MAP_SHARED, fd, 0));
You need to cast it. :)
data = static_cast(mmap((caddr_t)0, bytesToTransfer, PROT_READ, MAP_SHARED, fd, 0));
You need to cast it. :)