As of revision 10288, the OCaml bindings should be up to date with the
C PLplot API, including examples.  I get clean ctest output on my
system (Ubuntu 9.04 64bit) for the C <-> OCaml comparison.

I did run in to one compilation issue.  I use snprintf in the C
portion of the OCaml bindings (the file is
bindings/ocaml/plplot_impl.c).  This leads to a compilation error on
my system:

[ 62%] Generating x01.ml
[ 62%] Generating x01ocaml
/home/hcarty/Projects/plplot/build/bindings/ocaml/_build/libplplot_stubs.a(plplot_impl.o):
In function `ml_labelfunc':
plplot_impl.c:(.text+0x44e): undefined reference to `plsnprintf'
collect2: ld returned 1 exit status
File "/home/hcarty/Projects/plplot/build/examples/ocaml/x01.ml", line
1, characters 0-1:
Error: Error while building custom runtime system
make[2]: *** [examples/ocaml/x01ocaml] Error 2
make[1]: *** [examples/ocaml/CMakeFiles/target_x01ocaml.dir/all] Error 2
make: *** [all] Error 2

It looks like some snprintf detection logic from CMake is not making
its way in to the OCaml bindings compilation.  snprintf does exist and
seems to be correctly detected on my system.

The workaround I currently have in place is to "#undef snprintf" in
bindings/ocaml/plplot_impl.c on line 32, just after the PLplot
#include lines.  I imagine this may break compilation on systems which
do not provide snprintf though.  Any suggestions on how to handle this
better?

Hez

-- 
Hezekiah M. Carty
Graduate Research Assistant
University of Maryland
Department of Atmospheric and Oceanic Science

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to