Created
February 16, 2012 02:08
-
-
Save dradtke/1840965 to your computer and use it in GitHub Desktop.
A simple hello world program using clisp and cl-gtk2. Quicklisp is used for dependency resolution.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ; {{{ Load up GTK+ | |
| (LOAD '/opt/lisp/quicklisp/setup.lisp) | |
| (ql:quickload "cffi") | |
| (ql:quickload "trivial-garbage") | |
| (ql:quickload "iterate") | |
| (ql:quickload "bordeaux-threads") | |
| (ql:quickload "closer-mop") | |
| (ql:quickload "cl-opengl") | |
| (ql:quickload "cl-cairo2") | |
| (asdf:operate 'asdf:load-op :cl-gtk2-gtk) | |
| ; }}} | |
| ; display a window | |
| (gtk:within-main-loop | |
| (let ((window (make-instance 'gtk:gtk-window :title "Hello, world!"))) | |
| (gtk:widget-show window))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment