Hello,
I am trying to compile a static library on OSX 10.5 that links to a library that includes . The error message I'm getting is confusing because the conflicting type apparently conflicts with itself.
Compiler message:
In file included from /usr/local/include/jasper/jas_math.h:79,
from /usr/local/include/jasper.h:77,
from /Users/Shared/OsirixSVN/osirix/DCM Framework/DCMPixelDataAttribute.m:32:
/Developer/SDKs/MacOSX10.5.sdk/usr/include/assert.h:76: error: conflicting types for '__assert_rtn'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/assert.h:76: error: previous declaration of '__assert_rtn' was here
/Developer/SDKs/MacOSX10.5.sdk/usr/include/assert.h:77: error: conflicting types for '__eprintf'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/assert.h:77: error: previous declaration of '__eprintf' was here
Here is the problem code from assert.h. This is a system file that I have not modified.
__BEGIN_DECLS
void __assert_rtn(const char *, const char *, int, const char *) __dead2;
void __eprintf(const char *, const char *, unsigned, const char *) __dead2;
__END_DECLS
I have not yet found posts where anyone describes this same problem, but I will keep looking.