15
$\begingroup$

A LibraryLink library compiled with headers having a certain WolframLibraryVersion will not work with Mathematica versions that support only earlier WolframLibraryVersions.

For example, a library compiled with M12.0 (WolframLibraryVersion == 5) will work not only in 12.0 but also in 12.1–13.0 (WolframLibraryVersion == 6). However, it will not work in 11.3 (WolframLibraryVersion == 4).

Which Mathematica versions use which WolframLibraryVersion?

$\endgroup$

1 Answer 1

13
$\begingroup$

Run the following to find out the WolframLibraryVersion for your Mathematica, and please help complete the table below, if any entries are missing.

StringCases[
 Import[FileNameJoin[{$InstallationDirectory, "SystemFiles", "IncludeFiles", "C", "WolframLibrary.h"}], "String"],
 StartOfLine ~~ ___ ~~ "WolframLibraryVersion" ~~ 
   Whitespace .. ~~ (v : DigitCharacter ..) ~~ Whitespace ... ~~ 
   EndOfLine :> v
]

Mathematica WolframLibraryVersion
12.1 – 13.0 6
12.0 5
11.2 – 11.3 4
10.0 – 11.1 3
9.0 2
8.0 1

Notes

  • LibraryLink was not available before 8.0.
$\endgroup$
1
  • 1
    $\begingroup$ This table is now complete, but feel free to update once 13.1 comes out. $\endgroup$
    – Szabolcs
    May 24 at 13:01

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.