Trying to build the plplot OCaml bindings from the latest SVN failed with a build error:
Scanning dependencies of target target_lib_plplot_stubs
[ 56%] Generating plplot_core.idl, plplot_core.h, plplot_core.ml, plplot_core.mli, plplot_core_stubs.c
File /Users/farr/Documents/code/plplot/build_dir/bindings/ocaml/plplot_core.idl, line 254, column 13: Illegal character #
make[2]: *** [bindings/ocaml/plplot_core.idl] Error 2
make[1]: *** [bindings/ocaml/CMakeFiles/target_lib_plplot_stubs.dir/all] Error 2
make: *** [all] Error 2
The attached patch fixes the problem by removing the RAW_ML macro from plplot_core.idl and manually quoting the offending lines. Let me know if you have any questions.
Patch to fix the syntax error building the OCaml bindings.
What OS, gcc/cpp, camlidl and OCaml versions are you using?
hit by the exact same bug, I've switched to OSX 10.8, opam 1.0.0, ocaml 4.01.0, gcc 4.8.2 (was using ocaml 3.12.1, godi, gcc-4.7 on OS X 10.6 & 10.7 before and was not hit by this), in both case using camlidl 1.05
Whoops---sorry. I'm running Mac OS X 10.6.4, gcc 4.2.1 (Apple build), camlidl 1.0.5, ocaml svn sources (3.13.0+dev0 (2010-06-07)). But, I don't think anything (except maybe the GCC version used for the C-preprocessing) is relevant here; the error seems to be that camlidl doesn't like the # character that the old RAW_ML macro inserted. Let me know if you need any more info. (Thanks for the quick response, too!)