caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Jung Woon Ho" <unosoft@hotmail.com>
To: caml-list@inria.fr
Subject: [Caml-list] linking caml files to C
Date: Tue, 01 Jul 2003 16:51:05 +0000	[thread overview]
Message-ID: <BAY1-F38EPUTYg0wBrY000583e8@hotmail.com> (raw)

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


             reply	other threads:[~2003-07-01 16:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-01 16:51 Jung Woon Ho [this message]
2003-07-01 18:50 ` Jean-Baptiste Rouquier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BAY1-F38EPUTYg0wBrY000583e8@hotmail.com \
    --to=unosoft@hotmail.com \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).