malloc_g

We are trying to use the <malloc_g/malloc.h> in a simple program and we are
getting these errors


In file included from test.cpp:10:
/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 defined 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
defined

We are compiling with QCC, QNX 6.1.0 patch a and the Dinkum C++ library.
What i’m doing wrong?

Rejean Senecal <rsenecal@oerlikon.ca> wrote:
: We are trying to use the <malloc_g/malloc.h> in a simple program and we are
: getting these errors


: In file included from test.cpp:10:
: /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 : defined 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
: defined

: We are compiling with QCC, QNX 6.1.0 patch a and the Dinkum C++ library.
: What i’m doing wrong?

hmm … send a PR, seems the headers are getting confuse.
Probably done before the Dinkums change.