11
$\begingroup$

Bug introduced v10.0.1 and fixed in 10.0.2


Everything was working fine with WSTP (the successor to MathLink) in 10.0.0. But I upgraded to 10.0.1 today and now I can't compile either my programs (I've changed nothing - the directories to the libraries are the same as before) or the example programs provided with Mathematica.

Running the makefile gives undefined references to every single WSTP function used in the program. For example, for the program addtwo.c (provided as an example in MMA), I get undefined references to WSGetInteger, WSPutInteger, WSEvaluate and many more.

Has anyone else encountered this problem? Is there something I need to change?

System: Ubuntu 12.04, Mathematica 10.0.1.

$\endgroup$
  • $\begingroup$ I've added a bug tag, based on @sakra's answer below that the shared libraries in Linux are broken, and that one must use the static libraries instead. $\endgroup$ – dr.blochwave Sep 23 '14 at 12:04
  • $\begingroup$ This may help you, but I'm not sure. mathematica.stackexchange.com/questions/67787/… $\endgroup$ – Donald7771 Dec 11 '14 at 3:30
  • 3
    $\begingroup$ This has been fixed as of version 10.0.2. $\endgroup$ – ilian May 7 '15 at 12:29
16
$\begingroup$

Under Linux the WSTP shared libraries that ship with Mathematica 10.0.1 for both 64 and 32 bit (libWSTP64i4.so and libWSTP32i4.so) appear to be broken. Link with the static versions libWSTP64i4.a or libWSTP32i4.a instead. The Windows and OS X versions are OK.

$\endgroup$
  • $\begingroup$ Perfect, all working fine now - thanks! $\endgroup$ – dr.blochwave Sep 23 '14 at 12:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.