[Expat-bugs] [ expat-Bugs-653449 ] conflicting linkage on XmlInitUnknownEncoding

noreply at sourceforge.net noreply at sourceforge.net
Fri Dec 13 12:33:31 EST 2002


Bugs item #653449, was opened at 2002-12-13 23:30
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=653449&group_id=10127

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Artyom Bolgar (artyom17)
Assigned to: Nobody/Anonymous (nobody)
>Summary: conflicting linkage on XmlInitUnknownEncoding

Initial Comment:
Expat 1.95.5.
When compiling xmltok.c with Sun CC, I was getting a 
conflicting linkage warning on XmlInitUnknownEncoding.  
The reason was because the callback function type in 
the argument list was declared inline.  This caused it to 
be generated with C linkage in the prototype (as 
declared inside the xmltok.h file inside the 'extern "C"' 
block) and with C++ linkage in the .c file (because this 
was not in a C block). Note, Sun CC compiles C-files as 
C++ ones.
 
The fix was to add the type "CONVERTER" to the 
xmltok.h file for the callback prototype.  This type was 
then used in the argument list.  

I attached the diff files for XMLTOK.H and XMLTOK.C.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=653449&group_id=10127



More information about the Expat-bugs mailing list