[Expat-discuss] Problems with EXPAT for Windows CE

Mukesh S Mukesh.S at mphasis.com
Wed Jun 21 09:29:09 CEST 2006


I AM GETTING THE SAME ERROR, CAN U PLS TELL ME HOW DID U RESOLVE THIS
PROBLEM.
Hi, 
 
 
 
I'm trying to use Windows CE ported EXPAT version of movsoftware
(http://www.movsoftware.com/expatxml.htm). I have quite lot problems to
compile and use it. 
 
When I open the project with "Visual C++" there are four projects
(gennmtab, xmlparse, xmltok, xmlwf). Trying to compile those I got a
whole lot of warnings:
 
 
 
 
 
------ Rebuild All started: Project: xmltok, Configuration: (WCE SH3)
Debug Win32 ------
 
 
 
Deleting intermediate files and output files for project 'xmltok',
configuration '(WCE SH3) Debug|Win32'.
 
Compiling...
 
xmltok.c
 
xmltok.c(1111) : warning C4273: 'XmlUtf8Encode' : inconsistent dll
linkage
 
xmltok.c(1147) : warning C4273: 'XmlUtf16Encode' : inconsistent dll
linkage
 
xmltok.c(1172) : warning C4273: 'XmlSizeOfUnknownEncoding' :
inconsistent dll linkage
 
xmltok.c(1263) : warning C4273: 'XmlInitUnknownEncoding' : inconsistent
dll linkage
 
c:\Documents and Settings\Tobias
Beisel\Desktop\expatCE-orginal\xmltok\xmltok_ns.c(2) : warning C4273:
'XmlGetUtf8InternalEncoding' : inconsistent dll linkage
 
c:\Documents and Settings\Tobias
Beisel\Desktop\expatCE-orginal\xmltok\xmltok_ns.c(7) : warning C4273:
'XmlGetUtf16InternalEncoding' : inconsistent dll linkage
 
c:\Documents and Settings\Tobias
Beisel\Desktop\expatCE-orginal\xmltok\xmltok_ns.c(44) : warning C4273:
'XmlInitEncoding' : inconsistent dll linkage
 
c:\Documents and Settings\Tobias
Beisel\Desktop\expatCE-orginal\xmltok\xmltok_ns.c(85) : warning C4273:
'XmlParseXmlDecl' : inconsistent dll linkage
 
xmlrole.c
 
xmlrole.c(1111) : warning C4273: 'XmlPrologStateInit' : inconsistent dll
linkage
 
dllmain.c
 
Generating Code...
 
Linking...
 
   Creating library .\WCESH3Dbg/xmltok.lib and object
.\WCESH3Dbg/xmltok.exp
 
 
 
Build log was saved at "file://c:\Documents <file:///c:\Documents>  and
Settings\Tobias
Beisel\Desktop\expatCE-orginal\xmltok\WCESH3Dbg\BuildLog.htm"
 
xmltok - 0 error(s), 9 warning(s)
 
 
 
 
 
------ Rebuild All started: Project: xmlparse, Configuration: (WCE SH3)
Debug Win32 ------
 
 
 
Deleting intermediate files and output files for project 'xmlparse',
configuration '(WCE SH3) Debug|Win32'.
 
Compiling...
 
xmlparse.c
 
xmlparse.c(410) : warning C4273: 'XML_ParserCreate' : inconsistent dll
linkage
 
xmlparse.c(483) : warning C4273: 'XML_ParserCreateNS' : inconsistent dll
linkage
 
xmlparse.c(512) : warning C4273: 'XML_SetEncoding' : inconsistent dll
linkage
 
xmlparse.c(526) : warning C4273: 'XML_ExternalEntityParserCreate' :
inconsistent dll linkage
 
xmlparse.c(595) : warning C4273: 'XML_ParserFree' : inconsistent dll
linkage
 
xmlparse.c(626) : warning C4273: 'XML_UseParserAsHandlerArg' :
inconsistent dll linkage
 
xmlparse.c(631) : warning C4273: 'XML_SetUserData' : inconsistent dll
linkage
 
xmlparse.c(639) : warning C4273: 'XML_SetBase' : inconsistent dll
linkage
 
xmlparse.c(652) : warning C4273: 'XML_GetBase' : inconsistent dll
linkage
 
xmlparse.c(657) : warning C4273: 'XML_GetSpecifiedAttributeCount' :
inconsistent dll linkage
 
xmlparse.c(664) : warning C4273: 'XML_SetElementHandler' : inconsistent
dll linkage
 
xmlparse.c(671) : warning C4273: 'XML_SetCharacterDataHandler' :
inconsistent dll linkage
 
xmlparse.c(677) : warning C4273: 'XML_SetProcessingInstructionHandler' :
inconsistent dll linkage
 
xmlparse.c(683) : warning C4273: 'XML_SetCommentHandler' : inconsistent
dll linkage
 
xmlparse.c(690) : warning C4273: 'XML_SetCdataSectionHandler' :
inconsistent dll linkage
 
xmlparse.c(697) : warning C4273: 'XML_SetDefaultHandler' : inconsistent
dll linkage
 
xmlparse.c(704) : warning C4273: 'XML_SetDefaultHandlerExpand' :
inconsistent dll linkage
 
xmlparse.c(711) : warning C4273: 'XML_SetUnparsedEntityDeclHandler' :
inconsistent dll linkage
 
xmlparse.c(717) : warning C4273: 'XML_SetNotationDeclHandler' :
inconsistent dll linkage
 
xmlparse.c(724) : warning C4273: 'XML_SetNamespaceDeclHandler' :
inconsistent dll linkage
 
xmlparse.c(731) : warning C4273: 'XML_SetNotStandaloneHandler' :
inconsistent dll linkage
 
xmlparse.c(737) : warning C4273: 'XML_SetExternalEntityRefHandler' :
inconsistent dll linkage
 
xmlparse.c(742) : warning C4273: 'XML_SetExternalEntityRefHandlerArg' :
inconsistent dll linkage
 
xmlparse.c(752) : warning C4273: 'XML_SetUnknownEncodingHandler' :
inconsistent dll linkage
 
xmlparse.c(758) : warning C4273: 'XML_Parse' : inconsistent dll linkage
 
xmlparse.c(812) : warning C4273: 'XML_ParseBuffer' : inconsistent dll
linkage
 
xmlparse.c(831) : warning C4273: 'XML_GetBuffer' : inconsistent dll
linkage
 
xmlparse.c(866) : warning C4273: 'XML_GetErrorCode' : inconsistent dll
linkage
 
xmlparse.c(871) : warning C4273: 'XML_GetCurrentByteIndex' :
inconsistent dll linkage
 
xmlparse.c(878) : warning C4273: 'XML_GetCurrentByteCount' :
inconsistent dll linkage
 
xmlparse.c(885) : warning C4273: 'XML_GetCurrentLineNumber' :
inconsistent dll linkage
 
xmlparse.c(894) : warning C4273: 'XML_GetCurrentColumnNumber' :
inconsistent dll linkage
 
xmlparse.c(903) : warning C4273: 'XML_DefaultCurrent' : inconsistent dll
linkage
 
xmlparse.c(916) : warning C4273: 'XML_ErrorString' : inconsistent dll
linkage
 
hashtable.c
 
Generating Code...
 
Linking...
 
   Creating library .\WCESH3Dbg/xmlparse.lib and object
.\WCESH3Dbg/xmlparse.exp
 
 
 
Build log was saved at "file://c:\Documents <file:///c:\Documents>  and
Settings\Tobias
Beisel\Desktop\expatCE-orginal\xmlparse\WCESH3Dbg\BuildLog.htm"
 
xmlparse - 0 error(s), 34 warning(s)
 
 
 
 
 
------ Rebuild All started: Project: gennmtab, Configuration: Debug
Win32 ------
 
 
 
Deleting intermediate files and output files for project 'gennmtab',
configuration 'Debug|Win32'.
 
Compiling...
 
gennmtab.c
 
Linking...
 
LINK : warning LNK4075: ignoring '/EDITANDCONTINUE' due to
'/INCREMENTAL:NO' specification
 
 
 
Build log was saved at "file://c:\Documents <file:///c:\Documents>  and
Settings\Tobias
Beisel\Desktop\expatCE-orginal\gennmtab\Debug\BuildLog.htm"
 
gennmtab - 0 error(s), 1 warning(s)
 
 
 
 
 
------ Rebuild All started: Project: xmlwf, Configuration: Debug Win32
------
 
 
 
Deleting intermediate files and output files for project 'xmlwf',
configuration 'Debug|Win32'.
 
Compiling...
 
xmlwf.c
 
c:\Documents and Settings\Tobias
Beisel\Desktop\expatCE-orginal\xmlparse\xmlparse.h(41) : warning C4005:
'XMLPARSEAPI' : macro redefinition
 
        command-line arguments :  see previous definition of
'XMLPARSEAPI'
 
xmlfile.c
 
c:\Documents and Settings\Tobias
Beisel\Desktop\expatCE-orginal\xmlparse\xmlparse.h(41) : warning C4005:
'XMLPARSEAPI' : macro redefinition
 
        command-line arguments :  see previous definition of
'XMLPARSEAPI'
 
win32filemap.c
 
codepage.c
 
Linking...
 
LINK : warning LNK4075: ignoring '/EDITANDCONTINUE' due to
'/INCREMENTAL:NO' specification
 
 
 
Build log was saved at "file://c:\Documents <file:///c:\Documents>  and
Settings\Tobias
Beisel\Desktop\expatCE-orginal\xmlwf\Debug\BuildLog.htm"
 
xmlwf - 0 error(s), 3 warning(s)
 
 
 
 
 
---------------------- Done ----------------------
 
 
 
    Rebuild All: 4 succeeded, 0 failed, 0 skipped
 
 
 
 
 
Am I right to compile those sources with "Visual C++" using the
dll-files for windows CE afterwards?
 
 
 
After compiling it I got two dll-files (xmlparse.dll & xmltok.dll).
Using the corresponding ".lib"-files in my "eMbedded Visual C++" project
should make it possible to use a statement like:
 
 
 
XML_Parser p = XML_ParserCreate(NULL);
 
 
 
Shouldn't it? I included the ".lib"-files in "Project-> Settings ->
Link-> Object/library modules" 
 
 
 
Unfortunately I get those error messages:
 
 
 
Linking...
 
parseLBS.obj : error LNK2019: unresolved external symbol
__imp_XML_GetCurrentLineNumber referenced in function parseLBS
 
parseLBS.obj : error LNK2019: unresolved external symbol
__imp_XML_GetCurrentColumnNumber referenced in function parseLBS
 
parseLBS.obj : error LNK2019: unresolved external symbol
__imp_XML_ErrorString referenced in function parseLBS
 
parseLBS.obj : error LNK2019: unresolved external symbol
__imp_XML_GetErrorCode referenced in function parseLBS
 
parseLBS.obj : error LNK2019: unresolved external symbol __imp_XML_Parse
referenced in function parseLBS
 
parseLBS.obj : error LNK2019: unresolved external symbol
__imp_XML_SetStartElementHandler referenced in function parseLBS
 
parseLBS.obj : error LNK2019: unresolved external symbol
__imp_XML_UseParserAsHandlerArg referenced in function parseLBS
 
parseLBS.obj : error LNK2019: unresolved external symbol
__imp_XML_ParserCreate referenced in function parseLBS
 
ARMV4Dbg/Client_CE.exe : fatal error LNK1120: 8 unresolved externals
 
Error executing link.exe.
 
 
 
Client_CE.exe - 9 error(s), 0 warning(s)
 
 
 
Am I using the sources the right way or do I have to compile or use it
differently? 

 

 

Regards  

Mukesh Srivastav | Mobile Team | M P H A S I S  Architecting Value |
TECHNOLOGIES
        Balaji Mansion,  # 8/1 Bannerghatta Main Road, J P Nagar
Industrial Estate, Bangalore 560 076  | Tel: +91-80- 51537505, Extn:
444, | Mobile: +91-9980142921| http://www.mphasis.com
<blocked::http://www.mphasis.com/>  

 



More information about the Expat-discuss mailing list