I getting the following runtime error when my code is running:
ERROR: In procedure eval-string:
ERROR: Wrong type argument in position 1: 1050843
Here is the code. I use Cygwin on Win2K and wxWindows and the code is in a cpp
file.
static SCM test_function(SCM n)
{
printf("Die Zahl ist %d\n",SCM_INUM(n));
return SCM_UNSPECIFIED;
}
bool KApp::OnInit()
{
wxFrame *frame = new wxFrame((wxFrame*)NULL,-1,"Konstruktionsprogramm");
widget = new MainWidget(frame);
setupMenus();
frame->Show(true);
SetTopWindow(frame);
dateiname = NULL;
geo_init();
scm_init_guile();
scm_c_define_gsubr("test_function", 1, 0, 0,(SCM (*)())test_function);
scm_eval_string((scm_unused_struct*)"(test_function 4)");
return true;
}
Can anybody help me?
TIA,
--
Janos Blazi
_______________________________________________
Bug-guile mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-guile