caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Problem when using the native-code compiler and the Graphics module
@ 2004-02-23 17:37 GhostDog
  2004-02-23 17:46 ` Shawn Wagner
  0 siblings, 1 reply; 4+ messages in thread
From: GhostDog @ 2004-02-23 17:37 UTC (permalink / raw)
  To: caml-list

Hello !
I'm trying to run the following command :

ocamlopt graphics.cmx flocon.ml -S -cclib -L/usr/X11/lib -cclib -lX11 -o flocon.exe

to compile flocon.ml using the Graphics module.
Unfortunately it doesn't work, and returns :

gcc: /usr/local/lib/ocaml/graphics.o: No such file or directory
Error during linking

Why is that so ?
Thanks.

-- 
J.B. Domelevo
ENS Cachan - Brittany extension

-------------------
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] Problem when using the native-code compiler and the Graphics module
  2004-02-23 17:37 [Caml-list] Problem when using the native-code compiler and the Graphics module GhostDog
@ 2004-02-23 17:46 ` Shawn Wagner
  2004-02-23 21:17   ` J.B. Domelevo
  0 siblings, 1 reply; 4+ messages in thread
From: Shawn Wagner @ 2004-02-23 17:46 UTC (permalink / raw)
  To: caml-list

On Mon, Feb 23, 2004 at 06:37:05PM +0100, GhostDog wrote:
> Hello !
> I'm trying to run the following command :
> 
> ocamlopt graphics.cmx flocon.ml -S -cclib -L/usr/X11/lib -cclib -lX11 -o flocon.exe
 
Use graphics.cmxa instead.

-- 
Shawn Wagner
shawnw@speakeasy.org

-------------------
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] Problem when using the native-code compiler and the Graphics module
  2004-02-23 17:46 ` Shawn Wagner
@ 2004-02-23 21:17   ` J.B. Domelevo
  2004-02-23 21:32     ` Eric C. Cooper
  0 siblings, 1 reply; 4+ messages in thread
From: J.B. Domelevo @ 2004-02-23 21:17 UTC (permalink / raw)
  To: caml-list; +Cc: Shawn Wagner

By Shawn Wagner <shawnw@speakeasy.org>:

> On Mon, Feb 23, 2004 at 06:37:05PM +0100, GhostDog wrote:
> > Hello !
> > I'm trying to run the following command :
> > 
> > ocamlopt graphics.cmx flocon.ml -S -cclib -L/usr/X11/lib -cclib -lX11 -o
> flocon.exe
>  
> Use graphics.cmxa instead.

Thanks a lot for this advice, which proved successful. However, another problem
emerged : the '-S' option seems hollow : I expected an asm-like file named
'flocon.s' to be created, but it's not the case.
Your help might be useful -- once more.

Thanks again.

--
J.B. Domelevo
ENS Cachan - Brittany extension

-------------------
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] Problem when using the native-code compiler and the Graphics module
  2004-02-23 21:17   ` J.B. Domelevo
@ 2004-02-23 21:32     ` Eric C. Cooper
  0 siblings, 0 replies; 4+ messages in thread
From: Eric C. Cooper @ 2004-02-23 21:32 UTC (permalink / raw)
  To: caml-list

On Mon, Feb 23, 2004 at 10:17:15PM +0100, J.B. Domelevo wrote:
> By Shawn Wagner <shawnw@speakeasy.org>:
> 
> > On Mon, Feb 23, 2004 at 06:37:05PM +0100, GhostDog wrote:
> > > Hello !
> > > I'm trying to run the following command :
> > > 
> > > ocamlopt graphics.cmx flocon.ml -S -cclib -L/usr/X11/lib -cclib -lX11 -o
> > flocon.exe
> >  
> > Use graphics.cmxa instead.
> 
> Thanks a lot for this advice, which proved successful. However, another problem
> emerged : the '-S' option seems hollow : I expected an asm-like file named
> 'flocon.s' to be created, but it's not the case.
> Your help might be useful -- once more.

ocamlopt -c -S flocon.ml

-- 
Eric C. Cooper          e c c @ c m u . e d u

-------------------
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:[~2004-02-23 21:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-23 17:37 [Caml-list] Problem when using the native-code compiler and the Graphics module GhostDog
2004-02-23 17:46 ` Shawn Wagner
2004-02-23 21:17   ` J.B. Domelevo
2004-02-23 21:32     ` Eric C. Cooper

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