Put your gmalloc in a utility shared lib, and link your executable and
your shared lib against it.
Garry wrote:
Colin Burgess wrote:
You are only compiling it (because of the -c option)
So it is still only a .o file, even though you are telling qcc to call
it a .so
Doh! I took that away and it’s OK now. Thanks.
Just one more thing, from within my shared object, I cannot access
functions which are available from outside the shared object, but in the
same process. i.e. I’ve got my own gmalloc() call, which I use to debug
my mallocs, I can use it anywhere in my program, except in the shared
object, although printf() does work.
You are only compiling it (because of the -c option)
So it is still only a .o file, even though you are telling qcc to call
it a .so
Doh! I took that away and it’s OK now. Thanks.
Just one more thing, from within my shared object, I cannot access
functions which are available from outside the shared object, but in the
same process. i.e. I’ve got my own gmalloc() call, which I use to debug
my mallocs, I can use it anywhere in my program, except in the shared
object, although printf() does work.
Put your gmalloc in a utility shared lib, and link your executable and
your shared lib against it.
Garry wrote:
Colin Burgess wrote:
You are only compiling it (because of the -c option)
So it is still only a .o file, even though you are telling qcc to
call it a .so
Doh! I took that away and it’s OK now. Thanks.
Just one more thing, from within my shared object, I cannot access
functions which are available from outside the shared object, but in
the same process. i.e. I’ve got my own gmalloc() call, which I use to
debug my mallocs, I can use it anywhere in my program, except in the
shared object, although printf() does work.