[Top][All Lists]

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

[Chicken-users] "[panic] invalid encoded numeric literal" with gtk

From: Hugo Arregui
Subject: [Chicken-users] "[panic] invalid encoded numeric literal" with gtk
Date: Wed, 18 Feb 2015 00:47:42 -0300
User-agent: Mutt/1.5.21 (2010-09-15)

Hi guys,

I'm puzzled by a strange error I found playing with gtk, it might be
something silly, but I cannot grok it. The code is pretty simple:

;-- test.scm
(import chicken scheme foreign)

#include <gtk/gtk.h>

int main(int argc, char** argv) {
   gtk_init(&argc, &argv);
   return 0;

(print "hey")

;-- output:

$ chicken
(c) 2008-2014, The Chicken Team
(c) 2000-2007, Felix L. Winkelmann
Version (stability/4.9.0) (rev 8b3189b)
linux-unix-gnu-x86-64 [ 64bit manyargs dload ptables ]
bootstrapped 2014-06-07

$ csc -e test.scm `pkg-config --cflags --libs gtk+-3.0 | sed 's/-pthread/-C -pthread/'`
$ ./test
[panic] invalid encoded numeric literal - execution terminated


The error disappear if I remove the gtk_init line.

Any ideas?


reply via email to

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