({{, (RefLink[FindLibrary, paclet:ref/FindLibrary])[lib] 
finds a dynamic library that can be loaded by (RefLink[LibraryFunctionLoad, paclet:ref/LibraryFunctionLoad]).}})

OpenersNotesSection(Spacer1)Details

(RefLink[FindLibrary, paclet:ref/FindLibrary]) can be used to locate both Wolfram Libraries and general dynamic libraries.

If a relative file name is given, (RefLink[FindLibrary, paclet:ref/FindLibrary]) will use (RefLink[$LibraryPath, paclet:ref/$LibraryPath]) to find the library.

If no file name extension is given, (RefLink[FindLibrary, paclet:ref/FindLibrary]) will add one appropriate for the current platform: .so on Linux, .dll on Windows, .dylib on Mac OS X.

(RefLink[FindLibrary, paclet:ref/FindLibrary]) is used by library functions such as (RefLink[LibraryFunctionLoad, paclet:ref/LibraryFunctionLoad]) to find libraries.

OpenersPrimaryExamplesSection(Spacer1)Examples  (1)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

This finds the sample library called demo:

FindLibrary[ "demo"]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[$LibraryPath, paclet:ref/$LibraryPath])  ▪  (RefLink[LibraryFunctionLoad, paclet:ref/LibraryFunctionLoad])  ▪  (RefLink[LibraryFunction, paclet:ref/LibraryFunction])  ▪  (RefLink[FindFile, paclet:ref/FindFile])  ▪  (RefLink[$Path, paclet:ref/$Path])}})}})

({{DocumentationFooterIconsRelatedTutorial.png, ({{Tutorials}, {▪(RefLinkPlain[Library Link User Guide, paclet:LibraryLink/tutorial/Overview])}, {▪(RefLinkPlain[Library Structure, paclet:LibraryLink/tutorial/LibraryStructure])}, {▪(RefLinkPlain[Interacting with the Wolfram System, paclet:LibraryLink/tutorial/InteractionWithWolframLanguage])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Wolfram LibraryLink, paclet:guide/LibraryLink])}, {▪(RefLinkPlain[C/C++ Language Interface, paclet:guide/CLanguageInterface])}, {▪(RefLinkPlain[Calling External Programs, paclet:guide/CallingExternalPrograms])}, {▪(RefLinkPlain[External Operations, paclet:guide/ExternalOperations])}})}})