This question already has an answer here:

We are in the process of writing a Mathematica library by using C language and WSTP library. We encountered a lot of problems like sending a message from C to Mathematica, implementing an argument which is an array of strings in C, and so on. These problems cannot be solved by using WSTP library, and we need to use MathLink library. I should be noted that we have written a large portion of our library, and we cannot migrate from WSTP to MathLink now.

Question: I need to use both of wstp.h and mathlink.h libraries. Is there a way to use these two libraries in a project?


marked as duplicate by Szabolcs, C. E., Henrik Schumacher, Kuba Sep 3 '18 at 5:29

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • $\begingroup$ This question is based on a misunderstanding. "WSTP" and "MathLink" are the very same thing. There is zero functional difference. The only difference is in whether functions names start with a WS or an ML. $\endgroup$ – Szabolcs Sep 1 '18 at 20:11
  • $\begingroup$ This is essentially a duplicate of What is the difference between MathLink and WSTP? Which one should I use?. $\endgroup$ – Szabolcs Sep 1 '18 at 20:13
  • $\begingroup$ @H.H My answer might be useless. I was under the impression you are writing a "LibraryLink" and you need to send more complex arguments to your functions. It seems I was wrong. Can you please go through the post linked by Henrik and Szabolcs and tell if this solves your problem? $\endgroup$ – halirutan Sep 2 '18 at 18:15

Browse other questions tagged or ask your own question.