I have Visual Studio for C installed in : C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC
From https://reference.wolfram.com/language/tutorial/WSTPDeveloperGuide-Windows.html :
"Copy wstp.h to C:\Program Files\Microsoft Visual Studio 11\VC\include." - I have no include directory below C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC
"Copy the files wstp32i4.lib, wstp32i4m.lib, and wstp32i4s.lib to C:\Program Files\Microsoft Visual Studio 11\VC\lib. Note that for 64-bit Windows systems, these files will be named wstp64i4*." - I have no lib directory below C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC
"Finally, copy wsprep.exe to C:\Program Files\Microsoft Visual Studio 11\VC\bin." - I have no bin directory below C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC
I basically would like to know how to use WSTP with Visual Studio 2019, starting with how to place the above mentioned three required files.
Additionally, there is also a mention of a file wstpi64.lib, where do I have to place this file?
mathlink.h
/wstp.h
must be on the include path; the.lib
files must be on the library path, and must be linked to; the.dll
files must be on thePATH
—this should always be the case if the installable MathLink program is launched directly from Mathematica. Now you just need to figure out how to change these paths for any given system (either command line of GUI).mprep
/wsprep
are needed to convert the.tm
files into.c
course. You can run this tool directly. $\endgroup$ – Szabolcs Oct 14 '20 at 13:54.lib
files when linking the final executable. $\endgroup$ – Szabolcs Oct 14 '20 at 13:55