C++ and malloc_g in 6.1.0A

Hi All

I was trying to use malloc_g in a C++ program but it will not compile - see
below. I did see a thread (
http://groups.google.com/groups?q=qnx+malloc_g&hl=en&lr=lang_en&scoring=d&se
lm=9n54vk%2411v%241%40inn.qnx.com&rnum=6 ) discussing that same problem
where Graeme Peterson from QNX mentioned that it had been solved internally
but missed at last release. Could someone verify that and is there a fix
that can be applied?

Something QSSL could post a fix for on http://developers.qnx.com ???

Thanks
Jens



Part of the compiler errors:

In file included from ipscontroller.c:76:
/usr/include/malloc_g/malloc.h:50: multiple definition of enum malloc_opt_cmds' /usr/include/malloc_g/malloc.h:50: redefinition of enum malloc_opt_cmds
MALLOC_
VERIFY’
/usr/include/malloc.h:64: enum malloc_opt_cmds MALLOC_VERIFY' previously define d here /usr/include/malloc_g/malloc.h:51: redefinition of enum malloc_opt_cmds
MALLOC_
VERIFY_ON’
/usr/include/malloc.h:65: enum malloc_opt_cmds MALLOC_VERIFY_ON' previously def ined here /usr/include/malloc_g/malloc.h:52: redefinition of enum malloc_opt_cmds
MALLOC_
STATS’
/usr/include/malloc.h:66: enum malloc_opt_cmds MALLOC_STATS' previously defined here /usr/include/malloc_g/malloc.h:53: redefinition of enum malloc_opt_cmds
MALLOC_
FREE_CHECK’
/usr/include/malloc.h:67: `enum malloc_opt_cmds MALLOC_FREE_CHECK’
previously de

With C++, include <malloc_g/malloc> as opposed to <malloc_g/malloc.h>; our
documentation was recently corrected on this.
We also have an open PR 10323: malloc has conflicts iostream.


“Jens H Jorgensen” <jhj@remove-nospam-videk.com> wrote in message
news:a5ov1f$g80$1@inn.qnx.com

Hi All

I was trying to use malloc_g in a C++ program but it will not compile -
see
below. I did see a thread (

http://groups.google.com/groups?q=qnx+malloc_g&hl=en&lr=lang_en&scoring=d&se
lm=9n54vk%2411v%241%40inn.qnx.com&rnum=6 ) discussing that same problem
where Graeme Peterson from QNX mentioned that it had been solved
internally
but missed at last release. Could someone verify that and is there a fix
that can be applied?

Something QSSL could post a fix for on > http://developers.qnx.com > ???

Thanks
Jens



Part of the compiler errors:

In file included from ipscontroller.c:76:
/usr/include/malloc_g/malloc.h:50: multiple definition of enum malloc_opt_cmds' /usr/include/malloc_g/malloc.h:50: redefinition of enum malloc_opt_cmds
MALLOC_
VERIFY’
/usr/include/malloc.h:64: enum malloc_opt_cmds MALLOC_VERIFY' previously define d here /usr/include/malloc_g/malloc.h:51: redefinition of enum malloc_opt_cmds
MALLOC_
VERIFY_ON’
/usr/include/malloc.h:65: enum malloc_opt_cmds MALLOC_VERIFY_ON' previously def ined here /usr/include/malloc_g/malloc.h:52: redefinition of enum malloc_opt_cmds
MALLOC_
STATS’
/usr/include/malloc.h:66: enum malloc_opt_cmds MALLOC_STATS' previously defined here /usr/include/malloc_g/malloc.h:53: redefinition of enum malloc_opt_cmds
MALLOC_
FREE_CHECK’
/usr/include/malloc.h:67: `enum malloc_opt_cmds MALLOC_FREE_CHECK’
previously de