From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id BBB307EFCD for ; Wed, 12 Nov 2014 17:19:39 +0100 (CET) Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of gabriel.scherer@gmail.com) identity=pra; client-ip=209.85.214.176; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="gabriel.scherer@gmail.com"; x-sender="gabriel.scherer@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail3-smtp-sop.national.inria.fr: domain of gabriel.scherer@gmail.com designates 209.85.214.176 as permitted sender) identity=mailfrom; client-ip=209.85.214.176; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="gabriel.scherer@gmail.com"; x-sender="gabriel.scherer@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-ob0-f176.google.com) identity=helo; client-ip=209.85.214.176; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="gabriel.scherer@gmail.com"; x-sender="postmaster@mail-ob0-f176.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqgBAIaHY1TRVdawm2dsb2JhbABcg2JZBIMCuHaOSoFuh08CgRQHFgEBAQEBEQEBAQEBBgsLCRQuhAIBAQEDARIRHQEbEgsBAwELBgMCBAcNDR0CAiEBAREBBQEKEgYTEggIiAkBAwkJDZwkkD49MYszgXODEooJChknAwpohgYBAQEBAQUBAQEBAQEBARQBBQ6OTYI1BAeCd4FUBYUiBY4hg0WCSIJJghOBND2OA4Jpgg8YKYU3PDCCSwEBAQ X-IPAS-Result: AqgBAIaHY1TRVdawm2dsb2JhbABcg2JZBIMCuHaOSoFuh08CgRQHFgEBAQEBEQEBAQEBBgsLCRQuhAIBAQEDARIRHQEbEgsBAwELBgMCBAcNDR0CAiEBAREBBQEKEgYTEggIiAkBAwkJDZwkkD49MYszgXODEooJChknAwpohgYBAQEBAQUBAQEBAQEBARQBBQ6OTYI1BAeCd4FUBYUiBY4hg0WCSIJJghOBND2OA4Jpgg8YKYU3PDCCSwEBAQ X-IronPort-AV: E=Sophos;i="5.07,369,1413237600"; d="scan'208";a="87694497" Received: from mail-ob0-f176.google.com ([209.85.214.176]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/RC4-SHA; 12 Nov 2014 17:19:38 +0100 Received: by mail-ob0-f176.google.com with SMTP id va2so9203989obc.7 for ; Wed, 12 Nov 2014 08:19:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=G2jMrluf0c0R3twKy7LbwDlux9DbGOwWISB0d62vVLI=; b=id8tNEuVksFnAS1Or1TcFVPa14EKPy2PV8dG25aPSj9//C+u4qZsmn/B/QL0MJf7Rs dqcKxyjhB2J//S5VYGVUufJUGEjCpb+mstjv3+UNNJ9OtEsV+uajSEGbEwC++nNgdbau PT5jVuRKca419g+dvXHbNCrO/sTkoSapJLbMzDmAqrMLLkFE2GcmfW+Wn2e79DfbLSWv r/xlZ/SUKjREEfJNWRdSeSPclwg2zE6jH8O4C01e5l0Uf2dF7xTnXXBC8q5crBuoNcJk LV1yPtGlvOuaK9yPHoL8yoE7TtFO4/xiVYNug+yfZFqSfvpAYc3afQyj450kKlZlAQ3z X3og== X-Received: by 10.182.148.72 with SMTP id tq8mr1376221obb.78.1415809177681; Wed, 12 Nov 2014 08:19:37 -0800 (PST) MIME-Version: 1.0 Received: by 10.76.90.197 with HTTP; Wed, 12 Nov 2014 08:18:57 -0800 (PST) In-Reply-To: References: From: Gabriel Scherer Date: Wed, 12 Nov 2014 17:18:57 +0100 Message-ID: To: Kenneth Adam Miller Cc: caml users Content-Type: multipart/alternative; boundary=089e0129418c1b04850507abc34c Subject: Re: [Caml-list] Undefined global, yet included on command line --089e0129418c1b04850507abc34c Content-Type: text/plain; charset=UTF-8 You should probably also include "-package num -linkpkg". On Wed, Nov 12, 2014 at 5:14 PM, Kenneth Adam Miller < kennethadammiller@gmail.com> wrote: > Cool!! Thanks, now I'm getting "Reference to undefined global 'Big_int'" > > On Wed, Nov 12, 2014 at 11:04 AM, David Allsopp > wrote: > >> Kenneth Adam Miller wrote: >> > I'm getting the following error: >> > >> > Reference to undefined global `Service_piqi' >> > >> > Where I have a service.piqi file and I'm generating the interface >> automatically, >> > even adding it to my compile command. Compilation is failing on >> literally the >> > last command when I should spit out the result: >> > >> > ocamlfind ocamlc -o Serve >> > serve.cmo main.cmo service_piqi.cmo >> >> Your module order is wrong. service_piqi.cmo needs to come before >> serve.cmo (because it uses it). >> >> >> David >> >> -- >> Caml-list mailing list. Subscription management and archives: >> https://sympa.inria.fr/sympa/arc/caml-list >> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners >> Bug reports: http://caml.inria.fr/bin/caml-bugs > > > --089e0129418c1b04850507abc34c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
You should probably also include "-package num -linkp= kg".

On= Wed, Nov 12, 2014 at 5:14 PM, Kenneth Adam Miller <kennethadamm= iller@gmail.com> wrote:
Cool!! Thanks, now I'm getting "Reference to undefin= ed global 'Big_int'"

On Wed, Nov 12, 2014 at 11:04 AM, Da= vid Allsopp <dra-news@metastack.com> wrote:
Kenneth Adam Miller wrote:
> I'm getting the following error:
>
> Reference to undefined global `Service_piqi'
>
> Where I have a service.piqi file and I'm generating the interface = automatically,
> even adding it to my compile command. Compilation is failing on litera= lly the
> last command when I should spit out the result:
>
> ocamlfind ocamlc =C2=A0-o Serve
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0serve.cmo main.cmo service_piqi.cm= o

Your module order is wrong. service_piqi.cmo needs to come before se= rve.cmo (because it uses it).


David

--
Caml-list mailing list.=C2=A0 Subscription management and archives:
ht= tps://sympa.inria.fr/sympa/arc/caml-list
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs
<= br>

--089e0129418c1b04850507abc34c--