LibraryLink`
LibraryLink`

$LibraryError

$LibraryError

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

更多信息和选项

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

范例

基本范例  (1)

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

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 $LibraryError to find out more about the error:

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

Wolfram Research (2010),$LibraryError,Wolfram 语言函数,https://reference.wolfram.com/language/LibraryLink/ref/$LibraryError.html.

文本

Wolfram Research (2010),$LibraryError,Wolfram 语言函数,https://reference.wolfram.com/language/LibraryLink/ref/$LibraryError.html.

CMS

Wolfram 语言. 2010. "$LibraryError." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/LibraryLink/ref/$LibraryError.html.

APA

Wolfram 语言. (2010). $LibraryError. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/LibraryLink/ref/$LibraryError.html 年

BibTeX

@misc{reference.wolfram_2024_$libraryerror, author="Wolfram Research", title="{$LibraryError}", year="2010", howpublished="\url{https://reference.wolfram.com/language/LibraryLink/ref/$LibraryError.html}", note=[Accessed: 21-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_$libraryerror, organization={Wolfram Research}, title={$LibraryError}, year={2010}, url={https://reference.wolfram.com/language/LibraryLink/ref/$LibraryError.html}, note=[Accessed: 21-November-2024 ]}