From: "Zhu Ping" <zhuping@comp.nus.edu.sg>
To: <caml-list@yquem.inria.fr>
Subject: Using Frontc
Date: Fri, 18 Nov 2005 17:22:37 +0800 [thread overview]
Message-ID: <001d01c5ec21$a25b8570$1db312ac@comp.nus.edu.sg> (raw)
[-- Attachment #1: Type: text/plain, Size: 1400 bytes --]
Dear OCaml users:
I'm using Frontc, which is one of the libraries released in CDK, to parse C source code.
I downloded the complete binaries for Linux i386 libc6 from http://pauillac.inria.fr/cdk/binaries/binaries-3.03/gz/cdk-3.03.tar.gz and installed it on a Linux server by following the installation instructions.
The following code (mail.ml) is the main ocaml program that use Frontc to parse a sample code written in C language.
open Frontc
(* -------------------------------------- Test case for sample1.c --------------------------------------*)
let parse_result = Frontc.parse_file "/home/sand/zhuping/sample1.c" error_channel;
I compiled the maim.ml using this command: ocamlopt -I /usr/local/lib/cdk-3.03/lib/ocaml-3.03/ main.ml
But some error returns: /usr/local/lib/cdk-3.03/lib/ocaml-3.03/pervasives.cmi is not a compiled interface
All the Frontc codes located under the directory /usr/local/lib/cdk-3.03/lib/ocaml-3.03/ are compiled codes:
frontc.a
frontc.cma
frontc.cmi
frontc.cmx
frontc.cmxa
clexer.cmi
clexer.cmx
cparser.cmi
cparser.cmx
cabs.cmi
cabs.cmx
cprint.cmi
cprint.cmx
There are no source implementation/interface files with respect to the corresponding files listed above.
Can anybody help to to solve this problem? Thank you very much for your help:)
[-- Attachment #2: Type: text/html, Size: 3392 bytes --]
next reply other threads:[~2005-11-18 9:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-18 9:22 Zhu Ping [this message]
2005-11-18 9:52 ` [Caml-list] " Anil Madhavapeddy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='001d01c5ec21$a25b8570$1db312ac@comp.nus.edu.sg' \
--to=zhuping@comp.nus.edu.sg \
--cc=caml-list@yquem.inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox