redclaration errors when mixing C with C++

jasch's icon

Hi,

perhaps some of you have encountered this and know the solution right away?

I’m trying to Mix C and C++ in a plain old Max external (no Jamoma) an get redeclaration errors:
cstring: conflicting types for ‘memchr’ etc.
cwchar: conflicting types for ‘wcschr’ etc
and
stringfwd.h: Templates mut have C++ linkage etc.

I have made the ususal 'extern C' adjustments and copied a mixed xcode-project that works, so the basic setup ‘should’ work.

Any help appreciated

/*j

jasch's icon

here's a solution in reply to my own question, for those coming after us:

since the inclusion of C74_EXPORT like so : void C74_EXPORT ext_main(void *r) extern C is no longer needed, hence my redeclaration errors.
cheers
/*j