summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--deallocator.h3
-rwxr-xr-xsciconv_read.h1
-rwxr-xr-xsciconv_write.h2
-rwxr-xr-xsetup.py2
-rw-r--r--util.h2
5 files changed, 6 insertions, 4 deletions
diff --git a/deallocator.h b/deallocator.h
index 06d5c0b..eec7a17 100644
--- a/deallocator.h
+++ b/deallocator.h
@@ -2,6 +2,7 @@
#define _DEALLOCATOR_H
#include <Python.h>
+#include <api_common.h>
#if NUMPY == 1
#include <numpy/arrayobject.h>
@@ -21,4 +22,4 @@ extern PyTypeObject _MyDeallocType ;
extern void attach_deallocator(PyObject *, void *) ;
#endif
-#endif \ No newline at end of file
+#endif
diff --git a/sciconv_read.h b/sciconv_read.h
index af47eab..4df0018 100755
--- a/sciconv_read.h
+++ b/sciconv_read.h
@@ -24,6 +24,7 @@
#define SCICONV_READ
#include <Python.h>
+#include <api_common.h>
#include "util.h"
#if NUMPY == 1
diff --git a/sciconv_write.h b/sciconv_write.h
index e9569d6..86e5c08 100755
--- a/sciconv_write.h
+++ b/sciconv_write.h
@@ -21,7 +21,7 @@
#define SCICONV_WRITE
#include <Python.h>
-
+#include <api_common.h>
#if NUMPY == 1
#include "util.h"
#include "numpy/arrayobject.h"
diff --git a/setup.py b/setup.py
index e4b5da2..cdc031d 100755
--- a/setup.py
+++ b/setup.py
@@ -27,7 +27,7 @@ elif os.name == 'posix':
]
sci_lib_dir = [os.path.join("/","usr", "lib", "scilab")]
sci_librairies = ['scilab']
- sci_extra_link_args = ['-Wl,--no-as-needed']
+ sci_extra_link_args = ['-Wl,--no-as-needed -lpython2.7 -L/usr/lib/scilab -lsciapi_scilab -lscicall_scilab -lscioutput_stream -lscicore -lscilinear_algebra -lsciconsole -lscilocalization -lscipolynomials -lsciio -lscielementary_functions -lscisparse -lscihistory_manager -lscihistory_browser -lscigraphics -lscicompletion -lscifunctions -lsciboolean -lsciwindows_tools -lscitime -lscifftw -lsciintersci -lscidouble -lscicommons']
else:
raise NotImplementedError, "Only 'nt' and 'posix' are supported"
diff --git a/util.h b/util.h
index 4b5611b..09bedd6 100644
--- a/util.h
+++ b/util.h
@@ -6,7 +6,7 @@
#include "call_scilab.h"
#include "api_scilab.h"
-
+#include <api_common.h>
#define BUFSIZE 1024
#define TLIST_NAME "__tlist_name"