From: "Olivier Andrieu" <oandrieu@nerim.net>
To: "Florent Monnier" <fmonnier@linux-nantes.fr.eu.org>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] binding, compilation on mac os
Date: Mon, 18 Feb 2008 09:22:34 +0100 [thread overview]
Message-ID: <95513600802180022h269b8625y2c0bd4a415149873@mail.gmail.com> (raw)
In-Reply-To: <200802171920.46959.fmonnier@linux-nantes.fr.eu.org>
On Feb 17, 2008 7:20 PM, Florent Monnier
<fmonnier@linux-nantes.fr.eu.org> wrote:
> Hi,
> someone is trying to compile one of my binding on Mac OS, and reported me some
> problems, the main one is this error with this command:
>
> ocamlopt allegro.cmxa exhello.ml -o exhello
>
> <snip>
> /usr/bin/ld: Undefined symbols:
> .objc_class_name_NSApplication
> .objc_class_name_NSAutoreleasePool
> .objc_class_name_NSBundle
> .objc_class_name_NSConstantString
> .objc_class_name_NSFileManager
> .objc_class_name_NSMenu
> .objc_class_name_NSMenuItem
> .objc_class_name_NSObject
> .objc_class_name_NSProcessInfo
> .objc_class_name_NSThread
> _CFDictionaryGetValue
> _CFNumberGetValue
> _CGDisplayCurrentMode
> _CGDisplaySetPalette
> _CGMainDisplayID
> _FSGetCatalogInfo
> _GetProcessBundleLocation
> _NSApp
> __NSConstantStringClassReference
> ___CFStringMakeConstantString
> __mangled_main_address
> _objc_msgSend
> _caml_atom_table
> _caml_static_data_end
> _caml_static_data_start
> _caml_code_area_end
> _caml_code_area_start
> collect2: ld returned 1 exit status
> Error during linking
> </snip>
>
>
> here is the Makefile of the binding:
> http://www.linux-nantes.fr.eu.org/~fmonnier/OCaml/Allegro/Makefile
>
> Does someone have an idea about this problem ?
Here's the problem I think:
alleg-wrap.o: alleg-wrap.c
ocamlc -c -cc "gcc -o $@" $<
OCaml was probably compiled with a different C compiler. Try removing
the -cc option.
--
Olivier
prev parent reply other threads:[~2008-02-18 8:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-17 18:20 Florent Monnier
2008-02-18 8:22 ` Olivier Andrieu [this message]
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=95513600802180022h269b8625y2c0bd4a415149873@mail.gmail.com \
--to=oandrieu@nerim.net \
--cc=caml-list@inria.fr \
--cc=fmonnier@linux-nantes.fr.eu.org \
/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