$LibraryError


returns the system-dependent error message from loading a library, or None if there was no error.

更多信息更多信息

  • To use , you can load it using Needs["LibraryLink"].
  • The information returned by depends on the system on which it is run.

范例范例打开所有单元关闭所有单元

基本范例  (1)基本范例  (1)

This finds a sample library to use to demonstrate library loading problems:

In[1]:=
Click for copyable input
Out[1]=

The library has dependencies on other libraries. Normally, the Wolfram Language will load the other libraries first. However, if you just try to load the calendar library directly (and you have not already used a calendar function) this load instruction will fail:

You can use to find out more about the error:

In[3]:=
Click for copyable input
In[4]:=
Click for copyable input

Windows does not give the names of dependent libraries that cannot be found. On other platforms this information is available.