This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Questions with embedding guile


I'm trying to embed guile-1.2 in my apps. The problem is this: When I
execute gh_eval_file() on a file, it gives me a SCM object, right? Then
I try to massage it into a numeric value usable in my C code using
gh_scm2long. It gives me this error message:

guile: Wrong type argument in position 1: #<unspecified>

What am I doing wrong? Do I need to do something in my C or Guile code
to "cast" it to the correct type?
-- 
----------------------------------------------------------------------
Jeff Read <bitwize@geocities.com>/ http://genpc.home.ml.org
Unix / Linux / Windows Hacker,  / Boycott Microsoft!
Anime & Sonic Fan,             / Linux rules!
All Around Nice Guy           / Let's keep the Net and the Land FREE!
----------------------------------------------------------------------