Browse thread
[Caml-list] PXP and OCAMLMAKEFILE
- amata@t...
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | amata@t... |
| Subject: | [Caml-list] PXP and OCAMLMAKEFILE |
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