[racket] the program can't find image file

From: 김태윤 (kty1104 at gmail.com)
Date: Sat Oct 9 03:28:58 EDT 2010

thank you for your kindness
the following code
(define-runtime-path here ".")
(define here
   (path->string (build-path here "run.bmp"))))
doesn't work
"the error saya module: duplicate definition for identifier in: here"
so when I change the (define here ~ to (define hero ~
then another error apear
says "initialization in bitmap% (datastring case): expects 3 arguments,
given 2: #<void> unknown/mask"

can I have little bit more specify?

every time I try to google with keyword scheme, weird result come out so it
is hard to find solution

2010/10/9 Noel Welsh <noelwelsh at gmail.com>

> On Sat, Oct 9, 2010 at 2:40 AM, 김태윤 <kty1104 at gmail.com> wrote:
> There is a transcription error. This
> > (define-runtime-path hero ".")
> should be
> (define-runtime-path here ".")
> here, not hero. We are defining a path called "here" that specifies
> the path where the code is stored. I.e. here.
> > (define hero
> >  (bitmap
> >    (path->string (build-path 'same "run.bmp"))))
> When we build the path to run.bmp we want to use the path "here" we
> defined above, so
> (build-path here "run.bmp")
> HTH,
> N.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20101009/a15048ef/attachment.html>

Posted on the users mailing list.