Products
  • Wolfram|One

    The definitive Wolfram Language and notebook experience

  • Mathematica

    The original technical computing environment

  • Wolfram Notebook Assistant + LLM Kit

    All-in-one AI assistance for your Wolfram experience

  • System Modeler
  • Wolfram Player
  • Finance Platform
  • Wolfram Engine
  • Enterprise Private Cloud
  • Application Server
  • Wolfram|Alpha Notebook Edition
  • Wolfram Cloud App
  • Wolfram Player App

More mobile apps

Core Technologies of Wolfram Products

  • Wolfram Language
  • Computable Data
  • Wolfram Notebooks
  • AI & Linguistic Understanding

Deployment Options

  • Wolfram Cloud
  • wolframscript
  • Wolfram Engine Community Edition
  • Wolfram LLM API
  • WSTPServer
  • Wolfram|Alpha APIs

From the Community

  • Function Repository
  • Community Paclet Repository
  • Example Repository
  • Neural Net Repository
  • Prompt Repository
  • Wolfram Demonstrations
  • Data Repository
  • Group & Organizational Licensing
  • All Products
Consulting & Solutions

We deliver solutions for the AI era—combining symbolic computation, data-driven insights and deep technical expertise

  • Data & Computational Intelligence
  • Model-Based Design
  • Algorithm Development
  • Wolfram|Alpha for Business
  • Blockchain Technology
  • Education Technology
  • Quantum Computation

WolframConsulting.com

Wolfram Solutions

  • Data Science
  • Artificial Intelligence
  • Biosciences
  • Healthcare Intelligence
  • Sustainable Energy
  • Control Systems
  • Enterprise Wolfram|Alpha
  • Blockchain Labs

More Wolfram Solutions

Wolfram Solutions For Education

  • Research Universities
  • Colleges & Teaching Universities
  • Junior & Community Colleges
  • High Schools
  • Educational Technology
  • Computer-Based Math

More Solutions for Education

  • Contact Us
Learning & Support

Get Started

  • Wolfram Language Introduction
  • Fast Intro for Programmers
  • Fast Intro for Math Students
  • Wolfram Language Documentation

More Learning

  • Highlighted Core Areas
  • Demonstrations
  • YouTube
  • Daily Study Groups
  • Wolfram Schools and Programs
  • Books

Grow Your Skills

  • Wolfram U

    Courses in computing, science, life and more

  • Community

    Learn, solve problems and share ideas.

  • Blog

    News, views and insights from Wolfram

  • Resources for

    Software Developers

Tech Support

  • Contact Us
  • Support FAQs
  • Support FAQs
  • Contact Us
Company
  • About Wolfram
  • Career Center
  • All Sites & Resources
  • Connect & Follow
  • Contact Us

Work with Us

  • Student Ambassador Initiative
  • Wolfram for Startups
  • Student Opportunities
  • Jobs Using Wolfram Language

Educational Programs for Adults

  • Summer School
  • Winter School

Educational Programs for Youth

  • Middle School Camp
  • High School Research Program
  • Computational Adventures

Read

  • Stephen Wolfram's Writings
  • Wolfram Blog
  • Wolfram Tech | Books
  • Wolfram Media
  • Complex Systems

Educational Resources

  • Wolfram MathWorld
  • Wolfram in STEM/STEAM
  • Wolfram Challenges
  • Wolfram Problem Generator

Wolfram Initiatives

  • Wolfram Science
  • Wolfram Foundation
  • History of Mathematics Project

Events

  • Stephen Wolfram Livestreams
  • Online & In-Person Events
  • Contact Us
  • Connect & Follow
Wolfram|Alpha
  • Your Account
  • User Portal
  • Wolfram Cloud
  • Products
    • Wolfram|One
    • Mathematica
    • Wolfram Notebook Assistant + LLM Kit
    • System Modeler
    • Wolfram Player
    • Finance Platform
    • Wolfram|Alpha Notebook Edition
    • Wolfram Engine
    • Enterprise Private Cloud
    • Application Server
    • Wolfram Cloud App
    • Wolfram Player App

    More mobile apps

    • Core Technologies
      • Wolfram Language
      • Computable Data
      • Wolfram Notebooks
      • AI & Linguistic Understanding
    • Deployment Options
      • Wolfram Cloud
      • wolframscript
      • Wolfram Engine Community Edition
      • Wolfram LLM API
      • WSTPServer
      • Wolfram|Alpha APIs
    • From the Community
      • Function Repository
      • Community Paclet Repository
      • Example Repository
      • Neural Net Repository
      • Prompt Repository
      • Wolfram Demonstrations
      • Data Repository
    • Group & Organizational Licensing
    • All Products
  • Consulting & Solutions

    We deliver solutions for the AI era—combining symbolic computation, data-driven insights and deep technical expertise

    WolframConsulting.com

    Wolfram Solutions

    • Data Science
    • Artificial Intelligence
    • Biosciences
    • Healthcare Intelligence
    • Sustainable Energy
    • Control Systems
    • Enterprise Wolfram|Alpha
    • Blockchain Labs

    More Wolfram Solutions

    Wolfram Solutions For Education

    • Research Universities
    • Colleges & Teaching Universities
    • Junior & Community Colleges
    • High Schools
    • Educational Technology
    • Computer-Based Math

    More Solutions for Education

    • Contact Us
  • Learning & Support

    Get Started

    • Wolfram Language Introduction
    • Fast Intro for Programmers
    • Fast Intro for Math Students
    • Wolfram Language Documentation

    Grow Your Skills

    • Wolfram U

      Courses in computing, science, life and more

    • Community

      Learn, solve problems and share ideas.

    • Blog

      News, views and insights from Wolfram

    • Resources for

      Software Developers
    • Tech Support
      • Contact Us
      • Support FAQs
    • More Learning
      • Highlighted Core Areas
      • Demonstrations
      • YouTube
      • Daily Study Groups
      • Wolfram Schools and Programs
      • Books
    • Support FAQs
    • Contact Us
  • Company
    • About Wolfram
    • Career Center
    • All Sites & Resources
    • Connect & Follow
    • Contact Us

    Work with Us

    • Student Ambassador Initiative
    • Wolfram for Startups
    • Student Opportunities
    • Jobs Using Wolfram Language

    Educational Programs for Adults

    • Summer School
    • Winter School

    Educational Programs for Youth

    • Middle School Camp
    • High School Research Program
    • Computational Adventures

    Read

    • Stephen Wolfram's Writings
    • Wolfram Blog
    • Wolfram Tech | Books
    • Wolfram Media
    • Complex Systems
    • Educational Resources
      • Wolfram MathWorld
      • Wolfram in STEM/STEAM
      • Wolfram Challenges
      • Wolfram Problem Generator
    • Wolfram Initiatives
      • Wolfram Science
      • Wolfram Foundation
      • History of Mathematics Project
    • Events
      • Stephen Wolfram Livestreams
      • Online & In-Person Events
    • Contact Us
    • Connect & Follow
  • Wolfram|Alpha
  • Wolfram Cloud
  • Your Account
  • User Portal
Wolfram Language & System Documentation Center
LibraryFunctionLoad
  • See Also
    • LibraryFunction
    • LibraryFunctionUnload
    • FindLibrary
    • Function
    • Compile
    • CompiledFunction
    • Install

    • Functions
    • $LibraryError
  • Related Guides
    • Wolfram LibraryLink
    • C/C++ Language Interface
    • Calling External Programs
    • External Operations
  • Tech Notes
    • LibraryLink User Guide
    • Library Structure
    • Interacting with the Wolfram System
    • See Also
      • LibraryFunction
      • LibraryFunctionUnload
      • FindLibrary
      • Function
      • Compile
      • CompiledFunction
      • Install

      • Functions
      • $LibraryError
    • Related Guides
      • Wolfram LibraryLink
      • C/C++ Language Interface
      • Calling External Programs
      • External Operations
    • Tech Notes
      • LibraryLink User Guide
      • Library Structure
      • Interacting with the Wolfram System

LibraryFunctionLoad[lib,fun,argtype,rettype]

loads Wolfram Library lib and makes the library function fun available in the Wolfram Language.

Details and Options
Details and Options Details and Options
Examples  
Basic Examples  
Possible Issues  
See Also
Tech Notes
Related Guides
History
Cite this Page
BUILT-IN SYMBOL
  • See Also
    • LibraryFunction
    • LibraryFunctionUnload
    • FindLibrary
    • Function
    • Compile
    • CompiledFunction
    • Install

    • Functions
    • $LibraryError
  • Related Guides
    • Wolfram LibraryLink
    • C/C++ Language Interface
    • Calling External Programs
    • External Operations
  • Tech Notes
    • LibraryLink User Guide
    • Library Structure
    • Interacting with the Wolfram System
    • See Also
      • LibraryFunction
      • LibraryFunctionUnload
      • FindLibrary
      • Function
      • Compile
      • CompiledFunction
      • Install

      • Functions
      • $LibraryError
    • Related Guides
      • Wolfram LibraryLink
      • C/C++ Language Interface
      • Calling External Programs
      • External Operations
    • Tech Notes
      • LibraryLink User Guide
      • Library Structure
      • Interacting with the Wolfram System

LibraryFunctionLoad

LibraryFunctionLoad[lib,fun,argtype,rettype]

loads Wolfram Library lib and makes the library function fun available in the Wolfram Language.

Details and Options

  • Arguments of LibraryFunctionLoad are:
  • liblibrary to be loaded
    funfunction name as specified in the library file
    argtypeslist of argument types
    rettypereturn type
  • Possible argument and return types, and their corresponding C type, include:
  • True|FalsemboolBoolean
    _Integermintmachine integer
    _Realdoublemachine double
    _Complexmcomplexmachine complex double
    {dt,r}MTensortensor with element data type dt and rank r
    LibraryDataType[SparseArray,dt,r]MSparseArraysparse array with element data type dt and rank r
    LibraryDataType[Image,it]MImageimage with ImageType it
    LibraryDataType[Image3D,it]MImage3D image with ImageType it
    "UTF8String"char*string in UTF-8 encoding
    LinkObjectWSLINKarguments and result passed over WSTP
    "Void"voidno result (return only)
  • LibraryFunctionLoad returns the LibraryFunction object.
  • LibraryFunctionLoad can be called more than once with the same arguments returning the same LibraryFunction object.
  • LibraryFunctionLoad uses FindLibrary to locate libraries found on $LibraryPath.
  • When a Wolfram Library is loaded, an initialization function in the library is called.
  • When a Wolfram Library is unloaded, an uninitialization function in the library is called.
  • Libraries loaded by LibraryFunctionLoad run in the same process as the Wolfram Language kernel.
  • Functions in libraries loaded by LibraryFunctionLoad can make callbacks to the Wolfram Language.
  • Libraries loaded by LibraryFunctionLoad can share data with the Wolfram Language kernel.
  • LibraryFunctionUnload unloads a LibraryFunction so that it can no longer be used.
  • Libraries loaded by LibraryFunctionLoad are unloaded when the Wolfram Language kernel exits.
  • Libraries loaded by LibraryFunctionLoad must be written as a dynamic library for the platform on which they run.

Examples

open all close all

Basic Examples  (3)

Load a function from a sample library:

Call the function:

You can call LibraryFunctionLoad more than once for the same input:

Load a function from the library, which will exchange data over WSTP:

Load a function, which calls back to the Wolfram Language to evaluate Message[MyFunction::info]:

Possible Issues  (1)

LibraryFunctionLoad uses FindLibrary to locate libraries:

It is faster to find the library once with FindLibrary:

See Also

LibraryFunction  LibraryFunctionUnload  FindLibrary  Function  Compile  CompiledFunction  Install  $LibraryError

Tech Notes

    ▪
  • LibraryLink User Guide
  • ▪
  • Library Structure
  • ▪
  • Interacting with the Wolfram System

Related Guides

    ▪
  • Wolfram LibraryLink
  • ▪
  • C/C++ Language Interface
  • ▪
  • Calling External Programs
  • ▪
  • External Operations

History

Introduced in 2010 (8.0) | Updated in 2014 (10.0)

Wolfram Research (2010), LibraryFunctionLoad, Wolfram Language function, https://reference.wolfram.com/language/ref/LibraryFunctionLoad.html (updated 2014).

Text

Wolfram Research (2010), LibraryFunctionLoad, Wolfram Language function, https://reference.wolfram.com/language/ref/LibraryFunctionLoad.html (updated 2014).

CMS

Wolfram Language. 2010. "LibraryFunctionLoad." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2014. https://reference.wolfram.com/language/ref/LibraryFunctionLoad.html.

APA

Wolfram Language. (2010). LibraryFunctionLoad. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/LibraryFunctionLoad.html

BibTeX

@misc{reference.wolfram_2025_libraryfunctionload, author="Wolfram Research", title="{LibraryFunctionLoad}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/LibraryFunctionLoad.html}", note=[Accessed: 30-November-2025]}

BibLaTeX

@online{reference.wolfram_2025_libraryfunctionload, organization={Wolfram Research}, title={LibraryFunctionLoad}, year={2014}, url={https://reference.wolfram.com/language/ref/LibraryFunctionLoad.html}, note=[Accessed: 30-November-2025]}

Top
Introduction for Programmers
Introductory Book
Wolfram Function Repository | Wolfram Data Repository | Wolfram Data Drop | Wolfram Language Products
Top
  • Products
  • Wolfram|One
  • Mathematica
  • Notebook Assistant + LLM Kit
  • System Modeler

  • Wolfram|Alpha Notebook Edition
  • Wolfram|Alpha Pro
  • Mobile Apps

  • Wolfram Player
  • Wolfram Engine

  • Volume & Site Licensing
  • Server Deployment Options
  • Consulting
  • Wolfram Consulting
  • Repositories
  • Data Repository
  • Function Repository
  • Community Paclet Repository
  • Neural Net Repository
  • Prompt Repository

  • Wolfram Language Example Repository
  • Notebook Archive
  • Wolfram GitHub
  • Learning
  • Wolfram U
  • Wolfram Language Documentation
  • Webinars & Training
  • Educational Programs

  • Wolfram Language Introduction
  • Fast Introduction for Programmers
  • Fast Introduction for Math Students
  • Books

  • Wolfram Community
  • Wolfram Blog
  • Public Resources
  • Wolfram|Alpha
  • Wolfram Problem Generator
  • Wolfram Challenges

  • Computer-Based Math
  • Computational Thinking
  • Computational Adventures

  • Demonstrations Project
  • Wolfram Data Drop
  • MathWorld
  • Wolfram Science
  • Wolfram Media Publishing
  • Customer Resources
  • Store
  • Product Downloads
  • User Portal
  • Your Account
  • Organization Access

  • Support FAQ
  • Contact Support
  • Company
  • About Wolfram
  • Careers
  • Contact
  • Events
Wolfram Community Wolfram Blog
Legal & Privacy Policy
WolframAlpha.com | WolframCloud.com
© 2025 Wolfram
© 2025 Wolfram | Legal & Privacy Policy |
English