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

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -