warning C4267: '=' : conversion from 'size_t' to 'mwSize', possible loss of data (n3-n4 line)
warning C4267: '=' : conversion from 'size_t' to 'mwSize', possible loss of data (nrow,ncol line)
Here your target variables are smaller than the values returned by the function. Obviously, MATLAB changed the return types of these functions to size_t
so you should match your variables as well.
At least, this was my first thought. But I am wrong here: as you are passing (resp. should pass) the addresses of the variables, you should natch them to thetype needed by the function.
error C2100: illegal indirection (foo line)
This is clear: what do you want to achieve with *nrow
and *ncols
? They are no pointers, so using *
is pointless.