Includes source code of DLL files used in cDateFunctions repository.
You'll need to have rust and c++ compiler + Mathematica to access the header + lib file. If you hadn't:
- Visit Rust official page and follow steps to download rust.
- Visit Visual Studio Download page install a version (I'd used community version). After installing, open "Visual Studio Installer" > "Modify" > check "Desktop Developement with C++" and click "Modify" (it'll download necessary files).
Steps to build the project:
-
Build the rust project.
-
Create a C++ Project in visual studio.
-
Include Mathematica headers folder (example:
"C:\Program Files\Wolfram Research\Mathematica\13.0\SystemFiles\IncludeFiles\C"
) -
Link "wstp64i4m.lib" from Mathematica installation folder (example:
"C:\Program Files\Wolfram Research\Mathematica\13.0\SystemFiles\Links\WSTP\DeveloperKit\Windows-x86-64\CompilerAdditions"
) -
Link "cDateFunctionsLibraryLink.dll.lib" from rust "target/release" folder. (this file will be created if you execute step 1)
-
build the project.
-
After following these steps, you'll have 2 dll files:
- "cDateFunctionsLibraryLink.dll" from building rust project which include main functions
- "cDateFunctionsLibraryLinkInterface.dll" from building C++ project which include the interface to connect to Wolfram-Language