Answers for "error: invalid conversion from ‘void*’ to ‘char*’ [-fpermissive] mmap"

0

error: invalid conversion from ‘void*’ to ‘char*’ [-fpermissive] mmap

data = static_cast<char*>(mmap((caddr_t)0, bytesToTransfer, PROT_READ, MAP_SHARED, fd, 0));
You need to cast it. :)
Posted by: Guest on January-04-2021

Code answers related to "error: invalid conversion from ‘void*’ to ‘char*’ [-fpermissive] mmap"

Browse Popular Code Answers by Language