I'm currently trying to modify a library (ASN.1 Compiler), written in C, so I can compile and use it in C++ Builder (XE6). Doing that, I've encountered the error "Conflicting types for 'memchr'" (in cstring).
After some research, it seems that this problem comes from the fact that C and C++ code are mixed. However, I can't use the solutions suggested by the article in which I read that since they are related to the GCC compiler, when I'm using C++ Builder and its compilers.
What can be the solutions to solve this error?
Thank you
You probably mix including
cstringandstring.h. Do not do this.The former declares:
the latter does
Those are not of the same type.