I am getting a weird compile error:
I am trying to compile the following code:
Qt Code:
unsigned short *test; unsigned addr; test = (unsigned short*) calloc(1, sizeof(short)); addr = (unsigned) test;To copy to clipboard, switch view to plain text mode
note that the above is just an example to illustrate my problem. This compiles fine in visual studio. however, using qmake and make, I am getting the following error:
does anyone know what might be causing this? i have never encountered this before.error: cast from "short unsigned int*" to "unsigned int" loses precision
Bookmarks