guanaqo 1.0.0-alpha.27
Utilities for scientific software
Loading...
Searching...
No Matches
dl.hpp File Reference

Detailed Description

Dynamic library loading and symbol lookup.

Definition in file dl.hpp.

#include <guanaqo/dl-flags.hpp>
#include <guanaqo/export.h>
#include <filesystem>
#include <memory>
#include <stdexcept>
Include dependency graph for dl.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  guanaqo::dynamic_load_error
 Failed to load a DLL or SO file, or failed to access a function in it. More...

Namespaces

namespace  guanaqo

Functions

std::shared_ptr< void > guanaqo::load_lib (const std::filesystem::path &so_filename, DynamicLoadFlags flags)
 Load a DLL or DSO file.
void * guanaqo::load_func (void *lib_handle, const std::string &name)
 Get a pointer to a function inside of a loaded DLL or SO file.