New answers tagged windows
Wolfram has replaced MathLink with WSTP, but both their document and tool related to this are outofdated. Because of this bug, nobody could successfully compile the "addtwo.c" demo in "C:\Program Files\Wolfram Research\Mathematica\10.0\SystemFiles\Links\WSTP\DeveloperKit\Windows\WSTPExamples\addtwo", even if he followed the instruction in "WSTP Development ...
It seems that the original type of (char **) (at least up to version 8) has been changed to (const char **). So try MLPutReal32Array(stdlink,gr,dim,(const char**)0, 2); with no need for a type cast on the second and third argument.
Top 50 recent answers are included