chicken-users
[Top][All Lists]
Advanced

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

[Chicken-users] foreign-lambda* ?


From: Raffael Cavallaro
Subject: [Chicken-users] foreign-lambda* ?
Date: Wed, 06 Jul 2005 22:57:58 -0400

Maybe this didn't make it to the list. I'll try again.

Can someone provide a simple 5 line example of how to correctly embed C code in Scheme using foreign-lambda* and/or friends? Just a simple function will do. I'm trying to figure out a persistent linker error when I use these, and I want to make sure It isn't my test code that is the problem.

Thanks.

Original message:
------------------------

Can someone provide me with a minimal example scheme file that shows proper use of foreign-lambda* or foreign-callback-lambda* or foreign- safe-lambda* - in other words, a scheme file that embeds c code in the scheme file. Whenever I try to do this I get a linker error stating that the symbol in question - the name of the foreign-lambda* - prepended by an underscore, e.g., _foo is undefined:

/usr/bin/ld: Undefined symbols:
_tak


BTW, I'm on Mac OS X 10.4.1 and I compiled Chicken from source:

Version 1, Build 941 - macosx-unix-gnu-ppc

On this version of Mac OS X the default c compiler is gcc 4.0, so Chicken is using gcc 4.0.

Thanks in advance,

Ralph

Raffael Cavallaro, Ph.D.
address@hidden



_______________________________________________
Chicken-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/chicken-users





reply via email to

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