[plt-scheme] opengl binding

From: Jens Axel Søgaard (jensaxel at soegaard.net)
Date: Sun Sep 18 15:20:29 EDT 2005

Hans Oesterholt wrote:
> I've just downloaded drscheme 299.400. mzscheme is part of it, so
> I'm now recompiling opengl (for my enumerations), and will try to
> use sgl in glsample.scm.
> But I get some strange error (see below).
> What could be wrong?
>  > (require "mzgtk2-basic.scm")
> mzgtk2-basic.scm:20:2: module: identifier already imported (from a 
> different source) at: begin in: (require (lib "sgl.scm" "sgl"))
> /mzgtk2-basic.scm:/
> (module mzgtk2-basic mzscheme
>   (require (lib "sgl.scm" "sgl"))

It means that you in mzgtk2-basic defined a name that
is also provided by sgl.


(namespace-mapped-symbols (module->namespace '(lib "sgl.ss" "sgl")))

to see the list of exported names.

Anyways, try

     (require (prefix sgl- (lib "sgl.scm" "sgl")))

if you want to a quick way around the problem.

Jens Axel Søgaard

Posted on the users mailing list.