* [Caml-list] compilation problem
@ 2001-11-24 17:56 Chardon Bertrand
2001-11-26 11:27 ` Florian Hars
0 siblings, 1 reply; 4+ messages in thread
From: Chardon Bertrand @ 2001-11-24 17:56 UTC (permalink / raw)
To: caml-list
[-- Attachment #1: Type: text/plain, Size: 788 bytes --]
Hello,
These times i'm trying (for school purposes) to write a compiler for a mini functional language based on Caml.
To do so, i've written several files (parser, lexer, errors, location, and a main one) that are interdependent....
I've recently added a semantic analyser only dealing with type check....
And when i use the command "make" :
this message is displayed on the screen :
No implementation provided for the following modules :
Errors referenced from main.cmx
Location referenced from main.cmx
Anasem referenced from main.cmx
I sadly can't understand the nature of the error I made.
Indeed i get all the files errors.ml, location.ml and anasem.ml " with all the needed interfaces .mli.....
If I'm missing something important please let me know...
Thanks.
[-- Attachment #2: Type: text/html, Size: 1736 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Caml-list] compilation problem
@ 2002-12-02 18:23 altavillasalvatore
2002-12-03 7:44 ` Maxence Guesdon
0 siblings, 1 reply; 4+ messages in thread
From: altavillasalvatore @ 2002-12-02 18:23 UTC (permalink / raw)
To: caml-list
Hi,
I would want to compile the pascal.ml file:
****
pascal.ml
open Unix
let my_name =Unix.gethostname();;
******
I type
ocamlc -custom unix.cma pascal.ml -cclib -lunix
and then
ocamlc pascal.ml -o pascal
obtaining the following message:
Reference to undefined global `Unix'
I would want the exec -file.
Regards.
-------------------
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Caml-list] compilation problem
2002-12-02 18:23 altavillasalvatore
@ 2002-12-03 7:44 ` Maxence Guesdon
0 siblings, 0 replies; 4+ messages in thread
From: Maxence Guesdon @ 2002-12-03 7:44 UTC (permalink / raw)
To: altavillasalvatore, caml-list
>
> ****
> pascal.ml
> open Unix
> let my_name =Unix.gethostname();;
> ******
> I type
>
> ocamlc -custom unix.cma pascal.ml -cclib -lunix
>
> and then
>
> ocamlc pascal.ml -o pascal
>
> obtaining the following message:
>
> Reference to undefined global `Unix'
>
> I would want the exec -file.
The first command you typed is also used to create an executable (by default
a.out), since you did not provide the -c (compile only) or -a (create a library)
flags.
Change the first command to :
ocamlc -o pascal -custom unix.cma pascal.ml -cclib -lunix
to create the executable with the name 'pascal'.
You could also have compiled pascal.ml :
ocamlc -c pascal.ml (creates pascal.cmo and pascal.cmi)
then you could have created an executable with the compiled file :
ocamlc -o pascal -custom unix.cma -cclib -lunix pascal.cmo
--
Maxence Guesdon
-------------------
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-12-03 7:44 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-24 17:56 [Caml-list] compilation problem Chardon Bertrand
2001-11-26 11:27 ` Florian Hars
2002-12-02 18:23 altavillasalvatore
2002-12-03 7:44 ` Maxence Guesdon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox