Hello,
In order to make a TclTk application I have developped a program in C. I have created a new interpreter with Tcl_CreateInterp and added new commands with Tcl_CreateCommand... I compiled it in static with gcc 2.6 on Mandrake 8.2 like :
gcc -static -o mynewwish main.c /usr/lib/libtcl.a /usr/lib/libtk.a /usr/X11R6/lib/libX11.a ...
(I used tcl8.3.3 and tk 8.3.3 sources to obtain static librairies libtcl.a and libtk.a)
This soft was successfully compiled and linked and I could install it on several computers.
But recently, I changed my system using Mandrake 9.1. I have recompiled program with gcc 3.2 and same command line and sources. Compilation is successful but when running, the program crashes with segmentation fault. By debugging with gdb I have seen that problem came from the function XimFreeDefaultTree.
So Have I forgotten an option of compilation or is it a problem of X11.???
Is there a solution?
Thanks for help
In order to make a TclTk application I have developped a program in C. I have created a new interpreter with Tcl_CreateInterp and added new commands with Tcl_CreateCommand... I compiled it in static with gcc 2.6 on Mandrake 8.2 like :
gcc -static -o mynewwish main.c /usr/lib/libtcl.a /usr/lib/libtk.a /usr/X11R6/lib/libX11.a ...
(I used tcl8.3.3 and tk 8.3.3 sources to obtain static librairies libtcl.a and libtk.a)
This soft was successfully compiled and linked and I could install it on several computers.
But recently, I changed my system using Mandrake 9.1. I have recompiled program with gcc 3.2 and same command line and sources. Compilation is successful but when running, the program crashes with segmentation fault. By debugging with gdb I have seen that problem came from the function XimFreeDefaultTree.
So Have I forgotten an option of compilation or is it a problem of X11.???
Is there a solution?
Thanks for help