[xsde-users] Errors compiling xmltok_impl.c in XCode4

Tom Laws tom at ntbti.com
Sat Feb 18 23:06:06 EST 2012


I followed the instructions in the README for iOS and built the
libraries using make. Once I created the XCode project I set all the
options for paths and such and tried to build and got the following
errors in xmltok_impl.c:

s/lisa/Downloads/xsde-3.2.0-i686-macosx/libxsdee/libxsdee/xsde/c/expat/xmltok_impl.c:90:
error: expected '=', ',', ';', 'asm' or '__attribute__' before
'scanComment'
/Users/lisa/Downloads/xsde-3.2.0-i686-macosx/libxsdee/libxsdee/xsde/c/expat/xmltok_impl.c:128:
error: expected '=', ',', ';', 'asm' or '__attribute__' before
'scanDecl'
/Users/lisa/Downloads/xsde-3.2.0-i686-macosx/libxsdee/libxsdee/xsde/c/expat/xmltok_impl.c:175:
error: expected '=', ',', ';', 'asm' or '__attribute__' before
'checkPiTarget'
/Users/lisa/Downloads/xsde-3.2.0-i686-macosx/libxsdee/libxsdee/xsde/c/expat/xmltok_impl.c:223:
error: expected '=', ',', ';', 'asm' or '__attribute__' before
'scanPi'
/Users/lisa/Downloads/xsde-3.2.0-i686-macosx/libxsdee/libxsdee/xsde/c/expat/xmltok_impl.c:285:
error: expected '=', ',', ';', 'asm' or '__attribute__' before
'scanCdataSection'
/Users/lisa/Downloads/xsde-3.2.0-i686-macosx/libxsdee/libxsdee/xsde/c/expat/xmltok_impl.c:308:
error: expected '=', ',', ';', 'asm' or '__attribute__' before
'cdataSectionTok'
/Users/lisa/Downloads/xsde-3.2.0-i686-macosx/libxsdee/libxsdee/xsde/c/expat/xmltok_impl.c:386:
error: expected '=', ',', ';', 'asm' or '__attribute__' before
'scanEndTag'
/Users/lisa/Downloads/xsde-3.2.0-i686-macosx/libxsdee/libxsdee/xsde/c/expat/xmltok_impl.c:435:
error: expected '=', ',', ';', 'asm' or '__attribute__' before
'scanHexCharRef'
/Users/lisa/Downloads/xsde-3.2.0-i686-macosx/libxsdee/libxsdee/xsde/c/expat/xmltok_impl.c:467:
error: expected '=', ',', ';', 'asm' or '__attribute__' before
'scanCharRef'
/Users/lisa/Downloads/xsde-3.2.0-i686-macosx/libxsdee/libxsdee/xsde/c/expat/xmltok_impl.c:499:
error: expected '=', ',', ';', 'asm' or '__attribute__' before
'scanRef'
/Users/lisa/Downloads/xsde-3.2.0-i686-macosx/libxsdee/libxsdee/xsde/c/expat/xmltok_impl.c:529:
error: expected '=', ',', ';', 'asm' or '__attribute__' before
'scanAtts'
/Users/lisa/Downloads/xsde-3.2.0-i686-macosx/libxsdee/libxsdee/xsde/c/expat/xmltok_impl.c:688:
error: expected '=', ',', ';', 'asm' or '__attribute__' before
'scanLt'
/Users/lisa/Downloads/xsde-3.2.0-i686-macosx/libxsdee/libxsdee/xsde/c/expat/xmltok_impl.c:788:
error: expected '=', ',', ';', 'asm' or '__attribute__' before
'contentTok'
/Users/lisa/Downloads/xsde-3.2.0-i686-macosx/libxsdee/libxsdee/xsde/c/expat/xmltok_impl.c:887:
error: expected '=', ',', ';', 'asm' or '__attribute__' before
'scanPercent'
/Users/lisa/Downloads/xsde-3.2.0-i686-macosx/libxsdee/libxsdee/xsde/c/expat/xmltok_impl.c:916:
error: expected '=', ',', ';', 'asm' or '__attribute__' before
'scanPoundName'
/Users/lisa/Downloads/xsde-3.2.0-i686-macosx/libxsdee/libxsdee/xsde/c/expat/xmltok_impl.c:943:
error: expected '=', ',', ';', 'asm' or '__attribute__' before
'scanLit'
/Users/lisa/Downloads/xsde-3.2.0-i686-macosx/libxsdee/libxsdee/xsde/c/expat/xmltok_impl.c:975:
error: expected '=', ',', ';', 'asm' or '__attribute__' before
'prologTok'
/Users/lisa/Downloads/xsde-3.2.0-i686-macosx/libxsdee/libxsdee/xsde/c/expat/xmltok_impl.c:1206:
error: expected '=', ',', ';', 'asm' or '__attribute__' before
'attributeValueTok'
/Users/lisa/Downloads/xsde-3.2.0-i686-macosx/libxsdee/libxsdee/xsde/c/expat/xmltok_impl.c:1264:
error: expected '=', ',', ';', 'asm' or '__attribute__' before
'entityValueTok'
/Users/lisa/Downloads/xsde-3.2.0-i686-macosx/libxsdee/libxsdee/xsde/c/expat/xmltok_impl.c:1374:
error: expected '=', ',', ';', 'asm' or '__attribute__' before
'isPublicId'
/Users/lisa/Downloads/xsde-3.2.0-i686-macosx/libxsdee/libxsdee/xsde/c/expat/xmltok_impl.c:1434:
error: expected '=', ',', ';', 'asm' or '__attribute__' before
'getAtts'
/Users/lisa/Downloads/xsde-3.2.0-i686-macosx/libxsdee/libxsdee/xsde/c/expat/xmltok_impl.c:1527:
error: expected '=', ',', ';', 'asm' or '__attribute__' before
'charRefNumber'
/Users/lisa/Downloads/xsde-3.2.0-i686-macosx/libxsdee/libxsdee/xsde/c/expat/xmltok_impl.c:1574:
error: expected '=', ',', ';', 'asm' or '__attribute__' before
'predefinedEntityName'
/Users/lisa/Downloads/xsde-3.2.0-i686-macosx/libxsdee/libxsdee/xsde/c/expat/xmltok_impl.c:1630:
error: expected '=', ',', ';', 'asm' or '__attribute__' before
'sameName'
/Users/lisa/Downloads/xsde-3.2.0-i686-macosx/libxsdee/libxsdee/xsde/c/expat/xmltok_impl.c:1694:
error: expected '=', ',', ';', 'asm' or '__attribute__' before
'nameMatchesAscii'
/Users/lisa/Downloads/xsde-3.2.0-i686-macosx/libxsdee/libxsdee/xsde/c/expat/xmltok_impl.c:1709:
error: expected '=', ',', ';', 'asm' or '__attribute__' before
'nameLength'
/Users/lisa/Downloads/xsde-3.2.0-i686-macosx/libxsdee/libxsdee/xsde/c/expat/xmltok_impl.c:1736:
error: expected '=', ',', ';', 'asm' or '__attribute__' before 'skipS'
/Users/lisa/Downloads/xsde-3.2.0-i686-macosx/libxsdee/libxsdee/xsde/c/expat/xmltok_impl.c:1752:
error: expected '=', ',', ';', 'asm' or '__attribute__' before
'updatePosition'

I double-checked everything and have deleted and re-created new
projects numerous times and they are all failing the same way with the
same errors

When following the instructions, though, I cannot save the "libsxde"
dir when creating the project becuase it overwrites (as the
instructions say is okay, but ends up nuking src and xsde dirs). So I
have had to bring import the xsde dir and files as well as src

Second the default compiler is Apple LLVM compiler 3.0 and I manually
changed this to LLVM GCC 4.2 (those being the only two actual
options). I assume it is something to do with the compiler and/or some
other flags that need to be set.

Anyone have any ideas what I can do to get this working? This project
looks absolutely perfect for me so I would dearly like to use it.
Thanks in advance!



More information about the xsde-users mailing list