小编bac*_*opy的帖子

如何在scheme中编译可执行文件?

我想为以下代码创建一个可执行文件.这是Dr.racket编写的方案.怎么做?最好是它可以是独立的,如果我可以在iOS和Windows上打开它.非常感谢您的宝贵时间!

#lang racket

(require racket/gui/base)
(require compiler/embed)


; Make a frame by instantiating the frame% class
(define frame (new frame% [label "GUI"]
                   [width 200]
                   [height 200]))


; Make a static text message in the frame
(define msg (new message% [parent frame]
                          [label "This box is empty"]))


; Show the frame by calling its show method
(send frame show #t)
Run Code Online (Sandbox Code Playgroud)

scheme executable compilation racket

4
推荐指数
1
解决办法
3399
查看次数

标签 统计

compilation ×1

executable ×1

racket ×1

scheme ×1