From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id SAA21810; Tue, 1 Jul 2003 18:51:09 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id SAA21495 for ; Tue, 1 Jul 2003 18:51:08 +0200 (MET DST) Received: from hotmail.com (bay1-f38.bay1.hotmail.com [65.54.245.38]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h61Gp7f09288 for ; Tue, 1 Jul 2003 18:51:07 +0200 (MET DST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Tue, 1 Jul 2003 09:51:05 -0700 Received: from 128.2.64.250 by by1fd.bay1.hotmail.msn.com with HTTP; Tue, 01 Jul 2003 16:51:05 GMT X-Originating-IP: [128.2.64.250] X-Originating-Email: [unosoft@hotmail.com] From: "Jung Woon Ho" To: caml-list@inria.fr Subject: [Caml-list] linking caml files to C Date: Tue, 01 Jul 2003 16:51:05 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 01 Jul 2003 16:51:05.0876 (UTC) FILETIME=[F69E0D40:01C33FF0] X-Spam: no; 0.00; jung:99 flags:01 ocamlc:01 -output-obj:01 mli:01 gcc:01 cflags:01 -dhave:01 cxx:01 libs:01 -lm:01 usr:01 -ldl:01 bison:01 libcamlrun:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hi, Im trying to link caml files to the C files. I'm using this flags with the caml files. ----------------------------------------------------- %.$(O): %.ml $(OCAMLC) -c -output-obj -o $< %.cmi: %.mli $(OCAMLCI) -c -output-obj -o $< ------------------------------------------------------ And these options to link them to my current C-file program. ########################################################################## CC = gcc CFLAGS = -O3 -DHAVE_CONFIG_H CXX = g++ CXXFLAGS = -O3 -DHAVE_CONFIG_H LIBS = -lm -lfl -L/usr/local/lib/ocaml -lcamlrun -lunix -ldl -lncurses -lm YACC = bison -y FLEX = flex ########################################################################## And I'm getting these errors: /usr/local/lib/ocaml/libcamlrun.a(startup.o)(.text+0x364): In function `parse_command_line': : undefined reference to `names_of_builtin_cprim' /usr/local/lib/ocaml/libcamlrun.a(startup.o)(.text+0x36c): In function `parse_command_line': : undefined reference to `names_of_builtin_cprim' /usr/local/lib/ocaml/libcamlrun.a(startup.o)(.text+0x7f6): In function `caml_startup_code': : undefined reference to `builtin_cprim' /usr/local/lib/ocaml/libcamlrun.a(dynlink.o)(.text+0x13): In function `lookup_primitive': : undefined reference to `names_of_builtin_cprim' /usr/local/lib/ocaml/libcamlrun.a(dynlink.o)(.text+0x1b): In function `lookup_primitive': : undefined reference to `names_of_builtin_cprim' /usr/local/lib/ocaml/libcamlrun.a(dynlink.o)(.text+0x35): In function `lookup_primitive': : undefined reference to `builtin_cprim' /usr/local/lib/ocaml/libcamlrun.a(dynlink.o)(.text+0x3f): In function `lookup_primitive': : undefined reference to `names_of_builtin_cprim' collect2: ld returned 1 exit status make: *** [spl] Error 1 Can anybody help me, with this problem? Thank you, very much. _________________________________________________________________ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners