guile-user
[Top][All Lists]
Advanced

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

Re: Runtime error


From: Christopher Cramer
Subject: Re: Runtime error
Date: Thu, 14 Nov 2002 18:13:05 -0600
User-agent: Mutt/1.2.5i

On Thu, Nov 14, 2002 at 01:45:07PM +0100, jblazi wrote:
> I getting the following runtime error when my code is running:
> 
> ERROR: In procedure eval-string:
> ERROR: Wrong type argument in position 1: 1050843

>   scm_eval_string((scm_unused_struct*)"(test_function 4)");

The argument to scm_eval_string is a Scheme string, which is not the
same as a C string. You should do this instead:

    scm_c_eval_string("(test_function 4)");

-- 
Christopher Cramer <address@hidden> <http://www.pyro.net/~crayc/>
"Gore would have finished ahead by the barest of margins had he pursued
and gained a complete statewide recount." -- Associated Press, 9/6/2002




reply via email to

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