Ipopt Documentation  
LibraryHandler.h
Go to the documentation of this file.
1 /* Copyright (C) 2008 GAMS Development and others
2  * All Rights Reserved.
3  * This code is published under the Eclipse Public License.
4  *
5  * Author: Stefan Vigerske
6  *
7  * inspired by optcc.h in GAMS I/O libraries
8  */
9 
10 #ifndef LIBRARYHANDLER_H_
11 #define LIBRARYHANDLER_H_
12 
13 #include "IpoptConfig.h"
14 
15 #ifdef HAVE_WINDOWS_H
16 # include <windows.h>
17 typedef HINSTANCE soHandle_t;
18 #ifdef small
19 #undef small
20 #endif
21 #else
22 # ifdef HAVE_DLFCN_H
23 # include <unistd.h>
24 # include <dlfcn.h>
25 typedef void* soHandle_t;
26 # else
27 # define ERROR_LOADLIB
28 typedef void* soHandle_t;
29 # endif
30 #endif
31 
40  const char* libname,
41  char* msgbuf,
42  int msglen
43 );
44 
50  soHandle_t libhandle
51 );
52 
53 #endif /* LIBRARYHANDLER_H_ */
LSL_unloadLib
int LSL_unloadLib(soHandle_t libhandle)
Unloads a shared library.
LSL_loadLib
soHandle_t LSL_loadLib(const char *libname, char *msgbuf, int msglen)
Loads a dynamically linked library.
IpoptConfig.h
soHandle_t
void * soHandle_t
Definition: LibraryHandler.h:25