Koenraad Lelong schreef:
Koenraad Lelong wrote:
Hi,
Has anyone successfully used the GTK2-library for an arm-processor ?
Today I tried the helloworld-demoes, which segfault. I tried gdb but
didn't find anything (gdb is brand new for me, so without much more
reading it will remain so I fear).
I tried a dummy program, just a writeln, which works fine, but the
moment I add some uses for GTK (glib2, gdk2 or gtk2), the program
crashes. gdb reports 'segmentation fault in _start()' and seems unable
to backtrace.
Any hints how to debug this (I know I must learn how to use gdb) ? And
since I have very little experience with programming for linux could
you please be verbose.
B.T.W. I was using gbdserver to debug this remotely. Are there gui's
that can connect to a gdbserver ? I tried ddd and KDbg on my
suse-machine but they seem unable to use gdbserver.
Thanks,
Koenraad Lelong.
...
I don't know why but I added -Xc to my command-line (I think I must have
misread and wanted to add -Xd, and then I used the bash-history to avoid
retyping). The --shared switch for the linker makes the trouble.
Can anyone tell me what --shared does ? In the man page for ld I find
-shared. If this is the same, does this mean I did make a shared
library, not a real executable ?
Stupid way to loose more than two weeks, but then, I learned to use gdb,
which is good I think, although it didn't help me with this.
Regards,
Koenraad Lelong.
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal