[racket] Embedding an image in Racket source

From: Robby Findler (robby at eecs.northwestern.edu)
Date: Tue Jan 3 13:40:27 EST 2012

In general, you cannot compile files that contain images (at least not
until we figure out how to fix that, but that probably won't be soon).

Are you trying to compile the file directly or is something else doing
it for you?


2012/1/3 José Lopes <jose.lopes at ist.utl.pt>:
> Hello,
> I am using Racket
> I defined a name that holds an image, embedded in a Racket source file, and
> I exported the name.
> When I try to import that name from another file I get this error:
> ..\..\..\..\..\..\..\Program
> Files\Racket-\collects\compiler\cm.rkt:369:6: write: cannot marshal
> value that is embedded in compiled code: (object:image-snip% ...)
> Does this mean I cannot export names that refer to an image?
> Regards,
> José
> --
> José António Branquinho de Oliveira Lopes
> 58612 - MEIC-A
> jose.lopes at ist.utl.pt
> ____________________
>  Racket Users list:
>  http://lists.racket-lang.org/users

Posted on the users mailing list.