Is it possible to create some other WSLINK instead of stdlink with WSMain function?
The following WSTP code I tested with mathematic 10.0 and it didn't work:
std::cout<<"this is a test message."<<std::endl;
WSPutString(stdlink, "test a reply message");
The error output from Mathematica is: LinkObject::linkd: Unable to communicate with closed link LinkObject[......]
However if I removed the std::cout line, it works fine. I can get the reply message on Mathematica.
I guess it is because they're all using stdlink, so I would like to change to another WSLINK. Is it possible to change it?