Ipopt 3.11.9
Loading...
Searching...
No Matches
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 $Id: LibraryHandler.h 2105 2012-06-12 13:22:30Z stefan $
6
7 Author: Stefan Vigerske
8
9 inspired by optcc.h in gams i/o libs
10*/
11
12#ifndef LIBRARYHANDLER_H_
13#define LIBRARYHANDLER_H_
14
15#include "IpoptConfig.h"
16
17#ifdef HAVE_WINDOWS_H
18# include <windows.h>
19 typedef HINSTANCE soHandle_t;
20#ifdef small
21#undef small
22#endif
23#else
24# ifdef HAVE_DLFCN_H
25# include <unistd.h>
26# include <dlfcn.h>
27 typedef void *soHandle_t;
28# else
29# define ERROR_LOADLIB
30 typedef void *soHandle_t;
31# endif
32#endif
33
40soHandle_t LSL_loadLib(const char* libname, char* msgbuf, int msglen);
41
47
48#endif /*LIBRARYHANDLER_H_*/
int LSL_unloadLib(soHandle_t libhandle)
Unloads a shared library.
void * soHandle_t
soHandle_t LSL_loadLib(const char *libname, char *msgbuf, int msglen)
Loads a dynamically linked library.