Index: /issm/trunk-jpl/src/wrappers/matlab/Makefile.am
===================================================================
--- /issm/trunk-jpl/src/wrappers/matlab/Makefile.am	(revision 15095)
+++ /issm/trunk-jpl/src/wrappers/matlab/Makefile.am	(revision 15096)
@@ -25,4 +25,5 @@
 				./io/MatlabMatrixToIssmMat.cpp\
 				./io/MatlabVectorToIssmVec.cpp
+
 				
 if PETSC
@@ -36,4 +37,20 @@
 if SHAREDLIBS
 libISSMMatlab_la_SOURCES = $(io_sources)
+endif
+#}}}
+#api io{{{
+lib_LIBRARIES += libISSMApi.a 
+if SHAREDLIBS
+lib_LTLIBRARIES += libISSMApi.la
+else
+lib_LTLIBRARIES +=
+endif
+
+api_sources= ./io/ApiPrintf.cpp
+
+libISSMApi_a_SOURCES = $(api_sources)
+libISSMApi_a_CXXFLAGS= $(ALLCXXFLAGS)
+if SHAREDLIBS
+libISSMApi_la_SOURCES = $(api_sources)
 endif
 #}}}
@@ -104,4 +121,5 @@
 AM_LDFLAGS += -avoid-version
 endif
+
 if SHAREDLIBS
 deps += ./libISSMMatlab.la 
@@ -121,4 +139,12 @@
 endif
 endif
+
+if SHAREDLIBS
+deps += ./libISSMApi.la 
+else
+deps += ./libISSMApi.a
+endif
+
+
 
 #MEXLIB needs to be the last (undefined references on larsen)
Index: /issm/trunk-jpl/src/wrappers/matlab/io/ApiPrintf.cpp
===================================================================
--- /issm/trunk-jpl/src/wrappers/matlab/io/ApiPrintf.cpp	(revision 15096)
+++ /issm/trunk-jpl/src/wrappers/matlab/io/ApiPrintf.cpp	(revision 15096)
@@ -0,0 +1,23 @@
+/* \file ApiPrintf.c:
+ * \brief: API specific symbols from libISSMCore that we need to resolve here
+ */
+
+#ifdef HAVE_CONFIG_H
+	#include <config.h>
+#else
+#error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!"
+#endif
+
+#include "./matlabio.h"
+#include "../../c/shared/shared.h"
+
+/*Matlab printf i/o: */
+/*FUNCTION ApiPrintf(char* format, const char* string){{{*/
+void ApiPrintf(char* format,const char* string){
+
+	/*use mexPrintf in matlab: */
+	mexPrintf(format,string);
+	
+	return;
+}
+/*}}}*/
Index: /issm/trunk-jpl/src/wrappers/matlab/io/WriteMatlabData.cpp
===================================================================
--- /issm/trunk-jpl/src/wrappers/matlab/io/WriteMatlabData.cpp	(revision 15095)
+++ /issm/trunk-jpl/src/wrappers/matlab/io/WriteMatlabData.cpp	(revision 15096)
@@ -488,13 +488,2 @@
 }
 /*}}}*/
-
-/*Matlab printf i/o: */
-/*FUNCTION ApiPrintf(char* format, const char* string){{{*/
-void ApiPrintf(char* format,const char* string){
-
-	/*use mexPrintf in matlab: */
-	mexPrintf(format,string);
-	
-	return;
-}
-/*}}}*/
Index: /issm/trunk-jpl/src/wrappers/python/Makefile.am
===================================================================
--- /issm/trunk-jpl/src/wrappers/python/Makefile.am	(revision 15095)
+++ /issm/trunk-jpl/src/wrappers/python/Makefile.am	(revision 15096)
@@ -8,5 +8,5 @@
 lib_LTLIBRARIES = libISSMPython.la
 else
-	lib_LTLIBRARIES =
+lib_LTLIBRARIES =
 endif
 
@@ -22,4 +22,20 @@
 if SHAREDLIBS
 libISSMPython_la_SOURCES = $(io_sources)
+endif
+#}}}
+#api io{{{
+lib_LIBRARIES += libISSMApi.a 
+if SHAREDLIBS
+lib_LTLIBRARIES += libISSMApi.la
+else
+lib_LTLIBRARIES +=
+endif
+
+api_sources= ./io/ApiPrintf.cpp
+
+libISSMApi_a_SOURCES = $(api_sources)
+libISSMApi_a_CXXFLAGS= $(ALLCXXFLAGS)
+if SHAREDLIBS
+libISSMApi_la_SOURCES = $(api_sources)
 endif
 #}}}
@@ -79,4 +95,12 @@
 deps += $(ADOLCLIB)
 endif
+
+if SHAREDLIBS
+deps += ./libISSMApi.la 
+else
+deps += ./libISSMApi.a
+endif
+
+
 
 endif 
Index: /issm/trunk-jpl/src/wrappers/python/io/ApiPrintf.cpp
===================================================================
--- /issm/trunk-jpl/src/wrappers/python/io/ApiPrintf.cpp	(revision 15096)
+++ /issm/trunk-jpl/src/wrappers/python/io/ApiPrintf.cpp	(revision 15096)
@@ -0,0 +1,24 @@
+/* \file ApiPrintf.c:
+ * \brief: pyton api specific symbols which are unresolved from libISSMCore.a
+ */
+
+#ifdef HAVE_CONFIG_H
+	#include <config.h>
+#else
+#error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!"
+#endif
+
+#include "./pythonio.h"
+#include "../../c/shared/shared.h"
+#include "../../c/shared/Enum/Enum.h"
+
+/*Python printf i/o: */
+/*FUNCTION ApiPrintf(char* format, const char* string){{{*/
+void ApiPrintf(char* format,const char* string){
+
+	/*use printf: */
+	printf(format,string);
+	
+	return;
+}
+/*}}}*/
