Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
* [Caml-list] PXP and OCAMLMAKEFILE
@ 2003-03-21 10:23 amata
  0 siblings, 0 replies; only message in thread
From: amata @ 2003-03-21 10:23 UTC (permalink / raw)
  To: markus; +Cc: caml-list


 Hello;

 I´m trying to compile a parse program using the library PXP. I want 
to use OcamlMakefile to do that. This is my makefile

#######################################################################
#
# Makefile for the CAMLprelude
# 1) Compile library with: make bcl
# 2) Install library with: make libinstall
# 3) Uninstall library with: make uninstall
#######################################################################
######################################################################
## This depends on the particular library being built
############################# #########################################
## This is a fairly standard way of building:
##        1 - for building libraries: list supporting files and 
libraries
##        then target on the library. The 'all' target builds 
libraries.

LIBS    = ocamlodbc unix pcre netstring pxp_lex_utf8 pxp_engine str cgi

CLIBS = psqlodbc 

LDFLAGS = -L/export/alcaudon/opt/pgsql/lib -L/export/turul5/amata/lib -
R/export/alcaudon/opt/pgsql/lib -R/export/turul5/amata/lib

# Place in FILES the name of files to be compiled

FILES   = cgi_servidor

SOURCES = $(addsuffix .ml, $(FILES)) 
                                     
# Place in RESULT the name of the library being developed

RESULT  = ejecutable.cgi

# THREADS = yes

all: bcl ncl

-include /export/turul5/amata/lib/makefile.head
########



  The program compiles without problems, but when i execute it, i get 
the error;

   Failure(No lexical analyzer available! (Badly linked executable?) )

  In order to solve this error, I need to link the file 
pxp_lex_link_utf8.cmo 

   How can I include files .cmo in the makefile?

   Thank you very much.

   Best regards.

-------------------
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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-03-21 10:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-21 10:23 [Caml-list] PXP and OCAMLMAKEFILE amata

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox