chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-users] foreign type export


From: Joel Reymont
Subject: [Chicken-users] foreign type export
Date: Sun, 2 Jan 2005 22:48:56 +0000

Folks,

Are foreign types exported by Chicken from the Scheme file in which they
are defined? I'm trying to use the SDL_Surface foreign type defined in
the SDL egg and I don't seem to be able to. I'm doing this:

(require 'sdl)
(require 'color)

(define :get-pixel (foreign-lambda color "getPixel"
                                   SDL_Surface
                                   integer
                                   integer))

And I get:

csc  -c++ -d1 -C "-I/usr/local/include -I/usr/local/include/SDL " -e -c
sdlhelper.scm
Error: illegal foreign type `SDL_Surface'
*** Shell command terminated with exit status 1: /usr/local/bin/chicken
sdlhelper.scm -output-file sdlhelper.cpp -quiet -ffi-define __cplusplus -
debug-level 1
make: *** [sdlhelper.o] Error 1 

    Thanks, Joel

-- 
OpenPoker: The Linux of poker software
http://wagerlabs.com/forums
* Tenerife * Canary Islands * Spain






reply via email to

[Prev in Thread] Current Thread [Next in Thread]