c++ - Conflicting types for 'memchr' -
i'm trying modify library (asn.1 compiler), written in c, can compile , use in c++ builder (xe6). doing that, i've encountered error "conflicting types 'memchr'" (in cstring).
after research, seems problem comes fact c , c++ code mixed. however, can't use solutions suggested article in read since related gcc compiler, when i'm using c++ builder , compilers.
what can solutions solve error?
thank you
you mix including cstring
, string.h
. not this.
the former declares:
void * memchr(void *, int, size_t);
the latter does
void * memchr(const void *, int, size_t);
those not of same type.
Comments
Post a Comment