[Expat-bugs]
[ expat-Bugs-653449 ] conflicting linkage on XmlInitUnknownEncoding
noreply at sourceforge.net
noreply at sourceforge.net
Fri Dec 13 19:13:41 EST 2002
Bugs item #653449, was opened at 2002-12-13 15:30
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=653449&group_id=10127
Category: None
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Artyom Bolgar (artyom17)
>Assigned to: Karl Waclawek (kwaclaw)
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.
----------------------------------------------------------------------
>Comment By: Karl Waclawek (kwaclaw)
Date: 2002-12-13 22:13
Message:
Logged In: YES
user_id=290026
Patch applied in xmltok.h rev. 1.9 and
xmltok.c rev. 1.28.
----------------------------------------------------------------------
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