[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Tinycc-devel] Problems trying to build a GTK-1.2 program
From: |
K.G. |
Subject: |
[Tinycc-devel] Problems trying to build a GTK-1.2 program |
Date: |
Sat, 13 Aug 2005 00:09:48 +0200 |
Hi,
I'm writing a GTK-1.2 program and trying to build it and test
it on as many architecture as possible with as many compilers
as possible. So far it works with gcc 2.95 3.3 3.4 4.0 3.5-ssa(rh)
3.2(rh) and icc v8.1 on i386 and x86-64, gcc 2.95 and ucbcc on
sparc (solaris), gcc 2.7 and visual age on power (aix), gcc and
the hp compiler on parisc (hp-ux) (if i remember well ;) ).
But I can't get it to work with tcc :
* If I try a separated compile / link approach (directed by a
Makefile) tcc seg fault :
tcc -W -Wall -funsigned-char `glib-config --cflags` `gtk-config --cflags` -c -o
allocation.o allocation.c
tcc -W -Wall -funsigned-char `glib-config --cflags` `gtk-config --cflags` -c -o
erreur.o erreur.c
tcc -W -Wall -funsigned-char `glib-config --cflags` `gtk-config --cflags` -c -o
indices_cartes.o indices_cartes.c
[...]
tcc -W -Wall -funsigned-char `glib-config --cflags` `gtk-config --cflags` -c -o
erreur_gui.o erreur_gui.c
tcc -W -Wall -funsigned-char `glib-config --cflags` `gtk-config --cflags` -c -o
sauvegarde.o sauvegarde.c
tcc -W -Wall -funsigned-char `glib-config --cflags` `gtk-config --cflags` -c -o
param_jdd.o param_jdd.c
tcc `glib-config --libs` `gtk-config --libs` -o foobar allocation.o erreur.o
indices_cartes.o [...] erreur_gui.o sauvegarde.o param_jdd.o
make: *** [foobar] Segmentation fault
* If I try to build the executable directly, it is created but it doesn't work :
tcc -o foobar -funsigned-char `glib-config --cflags` `gtk-config --cflags` *.c
`glib-config --libs` `gtk-config --libs`
./foobar
Gtk-WARNING **: gtk_signal_connect(): could not find signal "insert-text" in
the `GtkButton' class ancestry
Gtk-WARNING **: gtk_signal_connect(): could not find signal "changed" in the
`GtkButton' class ancestry
Gtk-WARNING **: gtk_signal_connect(): could not find signal "activate" in the
`GtkButton' class ancestry
Gtk-WARNING **: gtk_signal_connect(): could not find signal "insert-text" in
the `GtkButton' class ancestry
Gtk-WARNING **: gtk_signal_connect(): could not find signal "changed" in the
`GtkButton' class ancestry
Gtk-WARNING **: gtk_signal_connect(): could not find signal "activate" in the
`GtkButton' class ancestry
Gtk-WARNING **: gtk_signal_connect(): could not find signal "insert-text" in
the `GtkButton' class ancestry
Gtk-WARNING **: gtk_signal_connect(): could not find signal "changed" in the
`GtkButton' class ancestry
Gtk-WARNING **: gtk_signal_connect(): could not find signal "activate" in the
`GtkButton' class ancestry
Gtk-WARNING **: invalid cast from `GtkButton' to `GtkEntry'
Gtk-CRITICAL **: file gtkentry.c: line 535 (gtk_entry_get_text): assertion
`GTK_IS_ENTRY (entry)' failed.
Segmentation fault
I don't really now where to start to understand what's happening...
The -g flag is not working with gdb :
(gdb) l
Cannot access memory at address 0x1010b436
(gdb) break main
Cannot access memory at address 0x1010b436
What can I do ?
Cheers,
Guillaume Knispel
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Tinycc-devel] Problems trying to build a GTK-1.2 program,
K.G. <=