[CIL users] Compile CIL using ocamlmktop

2010-10-13 Thread Andre Passos
Hi, I am trying to build my Ocaml toplevel for CIL. I am using CIL as a library and what I normally do to compile CIL together with my code is: ocamlopt -c -I obj/x86_DARWIN/ main_new2.ml ocamlopt -ccopt -Lobj/x86_DARWIN/ -o main /opt/local/lib/ocaml/ unix.cmxa /opt/local/lib/ocaml/str.cmxa

[CIL users] Simple function to print a list of functions

2010-09-12 Thread Andre Passos
Hi, I am new in CIL. I had been reading the CIL documentation and I would like to start making a simple function that prints out the list of functions of a C file. I am trying to do this creating a new mail.ml and using the CIL API. Although I am finding some difficulties understanding th