[Top][All Lists]

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

[Chicken-users] define-foreign-type

From: Pupeno
Subject: [Chicken-users] define-foreign-type
Date: Sat, 29 Oct 2005 04:04:21 -0300
User-agent: KMail/1.8.3

Hello, I have a file named glib.c that contains:
(declare (unit glib))
#include <glib.h>
(define-foreign-type gpointer "gpointer")

I compile that to a .c and then to a .o.
I have another file that uses gpointer, I first tried
(declare (uses glib))
but it didn't work:
chicken gtkhello.scm -output-file gtkhello.c
compiling `gtkhello.scm' ...
generating `gtkhello.c' ...
Error: illegal foreign type `gpointer'

So I changed it to (include "glib") and I still get the same error. What am I 
missing ?

Thank you.
Pupeno <address@hidden> (

Attachment: pgpTtin1qWR3G.pgp
Description: PGP signature

reply via email to

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