caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Undefined global, yet included on command line
@ 2014-11-12 16:00 Kenneth Adam Miller
  2014-11-12 16:04 ` David Allsopp
  0 siblings, 1 reply; 4+ messages in thread
From: Kenneth Adam Miller @ 2014-11-12 16:00 UTC (permalink / raw)
  To: caml-list

[-- Attachment #1: Type: text/plain, Size: 666 bytes --]

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

Even when I open up the machine generated ml file, it includes the correct
declaration for the module that I want to use. If I change the module name
in serve.ml, which uses the module in service_piqi.ml, I get unbound module
errors. I have no earthly idea what is going on.

How do I get compilation to complete?

[-- Attachment #2: Type: text/html, Size: 963 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: [Caml-list] Undefined global, yet included on command line
  2014-11-12 16:00 [Caml-list] Undefined global, yet included on command line Kenneth Adam Miller
@ 2014-11-12 16:04 ` David Allsopp
  2014-11-12 16:14   ` Kenneth Adam Miller
  0 siblings, 1 reply; 4+ messages in thread
From: David Allsopp @ 2014-11-12 16:04 UTC (permalink / raw)
  To: caml-list

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Caml-list] Undefined global, yet included on command line
  2014-11-12 16:04 ` David Allsopp
@ 2014-11-12 16:14   ` Kenneth Adam Miller
  2014-11-12 16:18     ` Gabriel Scherer
  0 siblings, 1 reply; 4+ messages in thread
From: Kenneth Adam Miller @ 2014-11-12 16:14 UTC (permalink / raw)
  To: caml-list

[-- Attachment #1: Type: text/plain, Size: 954 bytes --]

Cool!! Thanks, now I'm getting "Reference to undefined global 'Big_int'"

On Wed, Nov 12, 2014 at 11:04 AM, David 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
> 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

[-- Attachment #2: Type: text/html, Size: 1688 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Caml-list] Undefined global, yet included on command line
  2014-11-12 16:14   ` Kenneth Adam Miller
@ 2014-11-12 16:18     ` Gabriel Scherer
  0 siblings, 0 replies; 4+ messages in thread
From: Gabriel Scherer @ 2014-11-12 16:18 UTC (permalink / raw)
  To: Kenneth Adam Miller; +Cc: caml users

[-- Attachment #1: Type: text/plain, Size: 1144 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 2159 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-11-12 16:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-12 16:00 [Caml-list] Undefined global, yet included on command line Kenneth Adam Miller
2014-11-12 16:04 ` David Allsopp
2014-11-12 16:14   ` Kenneth Adam Miller
2014-11-12 16:18     ` Gabriel Scherer

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