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 LAA18858; Fri, 21 Mar 2003 11:23:49 +0100 (MET) 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 LAA18727 for ; Fri, 21 Mar 2003 11:23:48 +0100 (MET) Received: from smtp.uc3m.es (smtp01.uc3m.es [163.117.136.121]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h2LANlX02396 for ; Fri, 21 Mar 2003 11:23:47 +0100 (MET) Received: from smtp01.uc3m.es (localhost [127.0.0.1]) by smtp.uc3m.es (Postfix) with ESMTP id 86C7443216 for ; Fri, 21 Mar 2003 11:23:47 +0100 (CET) Received: from alcaudon.tsc.uc3m.es (alcaudon.tsc.uc3m.es [163.117.145.35]) by smtp01.uc3m.es (Postfix) with ESMTP id A289D99E74 for ; Fri, 21 Mar 2003 11:23:42 +0100 (CET) Received: from tsc.uc3m.es ([127.0.0.1]) by alcaudon.tsc.uc3m.es (Netscape Messaging Server 4.15) with ESMTP id HC3GVH00.Q7Y; Fri, 21 Mar 2003 11:23:41 +0100 From: To: markus@oefai.at Cc: caml-list@inria.fr Message-ID: <1292613999.1399912926@tsc.uc3m.es> Date: Fri, 21 Mar 2003 11:23:41 +0100 X-Mailer: Netscape Webmail MIME-Version: 1.0 Content-Language: es Subject: [Caml-list] PXP and OCAMLMAKEFILE X-Accept-Language: es Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable X-Spam: no; 0.00; pxp:01 libinstall:01 uninstall:01 libs:01 ocamlodbc:01 pcre:01 netstring:01 clibs:01 ldflags:01 pgsql:01 turul:01 threads:01 ncl:99 -include:01 compiles:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hello=3B I=B4m trying to compile a parse program using the library PXP=2E I want = to use OcamlMakefile to do that=2E This is my makefile =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23 =23 =23 Makefile for the CAMLprelude =23 1) Compile library with=3A make bcl =23 2) Install library with=3A make libinstall =23 3) Uninstall library with=3A make uninstall =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23 =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23 =23=23 This depends on the particular library being built =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23 =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23= =23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23=23 =23=23 This is a fairly standard way of building=3A =23=23 1 - for building libraries=3A list supporting files and = libraries =23=23 then target on the library=2E The =27all=27 target builds = libraries=2E LIBS =3D ocamlodbc unix pcre netstring pxp=5Flex=5Futf8 pxp=5Fengine s= tr cgi CLIBS =3D psqlodbc = LDFLAGS =3D -L/export/alcaudon/opt/pgsql/lib -L/export/turul5/amata/lib -= R/export/alcaudon/opt/pgsql/lib -R/export/turul5/amata/lib =23 Place in FILES the name of files to be compiled FILES =3D cgi=5Fservidor SOURCES =3D =24(addsuffix =2Eml=2C =24(FILES)) = = =23 Place in RESULT the name of the library being developed RESULT =3D ejecutable=2Ecgi =23 THREADS =3D yes all=3A bcl ncl -include /export/turul5/amata/lib/makefile=2Ehead =23=23=23=23=23=23=23=23 The program compiles without problems=2C but when i execute it=2C i get= = the error=3B Failure(No lexical analyzer available! (Badly linked executable=3F) ) In order to solve this error=2C I need to link the file = pxp=5Flex=5Flink=5Futf8=2Ecmo = How can I include files =2Ecmo in the makefile=3F Thank you very much=2E Best regards=2E ------------------- 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