<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2003/11/9530be7daad00b27b3dfea45d1b6857f"
  from="Alain.Frisch@e..."
  author="Alain.Frisch@e..."
  date="2003-11-21T16:21:52"
  subject="[Caml-list] ocaml-pcre et mingw"
  prev="2003/11/6c043ff146c932e1e9f2f15e54ea3312"
  next="2003/11/7743d7fb3969895760863a808bc9af19"
  prev-thread="2003/11/f2a734a210920bee1d5c93213738f959"
  next-thread="2003/11/3063d33ba419fe87f63ac3ddb8c6b823"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] ocaml-pcre et mingw">
<msg 
  url="2003/11/9530be7daad00b27b3dfea45d1b6857f"
  from="Alain.Frisch@e..."
  author="Alain.Frisch@e..."
  date="2003-11-21T16:21:52"
  subject="[Caml-list] ocaml-pcre et mingw">
</msg>
</thread>

<contents>
Hello,

I'm trying to build pcre-ocaml with the mingw port of OCaml for
Windows. Has anyone succeeded to do it?

My best guess was to compile with "make CFLAGS=-mno-cygwin" and
STATIC=yes (in Makefile.conf), but when I try to link a program, I get:

$ ocamlfind ocamlc -package pcre -linkpkg -o x x.ml
C:/ocamlmgw/lib/site-lib\pcre/libpcre_stubs.a(pcre_stubs.o.b)(.text+0xee7):pcre_
stubs.c: undefined reference to `__ctype_'
collect2: ld returned 1 exit status
Error while building custom runtime system

I guess I have to say somewhere that I want to link for mingw, not cygwin.

Can anyone help?


Cheers,

Alain

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

</contents>

</message>

