\(\newcommand{\W}[1]{ \; #1 \; }\) \(\newcommand{\R}[1]{ {\rm #1} }\) \(\newcommand{\B}[1]{ {\bf #1} }\) \(\newcommand{\D}[2]{ \frac{\partial #1}{\partial #2} }\) \(\newcommand{\DD}[3]{ \frac{\partial^2 #1}{\partial #2 \partial #3} }\) \(\newcommand{\Dpow}[2]{ \frac{\partial^{#1}}{\partial {#2}^{#1}} }\) \(\newcommand{\dpow}[2]{ \frac{ {\rm d}^{#1}}{{\rm d}\, {#2}^{#1}} }\)
link_dll_lib¶
Link a Dynamic Link Library¶
Syntax¶
#
include <cppad/utility/link_dll_lib.hpp>
link_dll_lib
dll_linker ( dll_file , err_msg )fun_ptr = dll_linker ( function_name , err_msg )
Prototype¶
link_dll_lib(const std::string& dll_file, std::string& err_msg);
~link_dll_lib(void);
void* operator()
(const std::string& function_name, std::string& err_msg) const;
dll_linker¶
Is the dynamic link object that holds an in memory version of the library, It must not be deleted for as long as any fun_ptr return values is used.
function_name¶
Is the name of an external entry point in the dll.