Prev | Next | create_dll_lib |
# include <cppad/utility/create_dll_lib.hpp>
err_msg = create_dll_lib(dll_file, csrc_files, options)
template <class StringVector> std::string create_dll_lib( const std::string& dll_file , const StringVector& csrc_files , const std::map<std::string, std::string>& options )
create_dll_lib.hpp
is included
by <cppad/cppad.hpp>
, and can also be included separately.
dll_file
.
This file name must have the proper extension for a dynamic link library
(.so
on unix and .dll
on windows).
StringVector
is a simple vector with elements
of type std::string
.
csrc_files
contains the names of the C source
files that are compiled and linked to the library.
These files do not have to have a specific extension.
options
.
_MSC_VER
is defined, the default value for this option is
cl /EHs /EHc /c /LD /TC
If _MSC_VER
is not defined, the default value for this option is
gcc -c -fPIC
.
_MSC_VER
is defined, the default value for this option is
link /DLL
If _MSC_VER
is not defined, the default value for this option is
gcc -shared
.
err_msg
is the corresponding
error message.
create_dll_lib
.