[Gambas-devel] How to know if an object is allocated or freed ?
Laurent Carlier
lordheavy at ...141...
Thu Dec 16 09:38:14 CET 2004
Le Mercredi 15 Décembre 2004 17:07, Benoit Minisini a écrit :
> Send your source code!
Here is the source of the component, a project showing the prob, if anybody
know how to prevent the segfault ?
mysdl is the component, extract in the lib dir,
add @MYSDL_DIR@ at the end of the SUBDIR line of the Makefile.am in the lib
directory,
add this to the configure.in :
dnl ---- MYSDL Component
GB_COMPONENT(
mysdl,
MYSDL,
[MySDL component],
[GB_FIND(SDL.h SDL_image.h
SDL_gfxPrimitives.h, /usr/local/lib /usr/local /opt /usr/lib /usr, include
SDL*/include include/SDL*)],
[GB_FIND(libSDL.$SHLIBEXT libSDL_image.$SHLIBEXT libSDL_gfx.
$SHLIBEXT, /usr/local /opt /usr, lib SDL*/lib lib/SDL*)],
[$C_LIB $THREAD_LIB -lSDL -lSDL_image -lSDL_gfx -lm],
[$THREAD_INC])
and this at the end of configure.in in AC_OUTPUT :
src/lib/mysdl/Makefile \
then ./reconf .... you know :)
--
Laurent Carlier
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mysdl.tar.bz2
Type: application/x-tbz
Size: 12054 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/devel/attachments/20041216/15ade835/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: GfxTest-0.0.1.tar.gz
Type: application/x-tgz
Size: 609 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/devel/attachments/20041216/15ade835/attachment-0001.bin>
More information about the Devel
mailing list