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] |
I can't directly answer your question, but i can offer you a solution that can help you find your problem. An approach that another member of this list has turned me on to (thanks, russ!) is to have your program read from stdin. Run it as an inferior process from within emacs (or just a shell or something). Then you can put in the expression that you want, get the error that you get, run your debugger alongside it, etc., and "see" what's going on, interactively without having to re-compile to insert tests and try new things. -Peter On Thu, 12 Feb 1998, Jeff Read wrote: > 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! > ---------------------------------------------------------------------- > -- A tribute to modern technology (DON'T DO THIS) char hang[] = { 0xf0, 0x0f, 0xc7, 0xc8 }; int main() { void (*k)() = hang; k(); } /* As an exercise left to the reader, embed this in a ActiveX app */ Disclaimer: I do not speak for my employer.