[Gambas-devel] A few comment about Tommy's changes
Benoît Minisini
gambas at ...1...
Tue Aug 2 16:30:12 CEST 2011
> Benoit,
> I've managed to clean up the compiler errors, so it should work... Should,
> as I got the most awful error #11 segfault. I'm trying to write or reach
> to the memory I shouldn't... But where? I feel bad not for having
> problems, but for taking your precious time to help me solve them.
>
> Tomek.
>
Now you have to learn how to debug with gdb or valgrind, two tools that will
tell you (most of the time) where the segfault comes from.
"segfault" is not an awful error. It is usually the most easier error to fix.
Please read the "Reporting a problem" page on the web site at
http://gambas.sf.net (The same page is in the wiki too). It will tell you how
to get a stack backtrace with gdb of your error.
But before, you must compile the component without optimizations. To do that:
$ make clean
$ make "CFLAGS=-O0 -g" "CXXFLAGS=-O0 -g"
The 'make' arguments override the compilation flags.
To compile again with optimizations:
$ make clean
$ make
Regards,
--
Benoît Minisini
More information about the Devel
mailing list