[Expat-discuss] Problem with wchar in Linux
Gustavo Felisberto
gustavo at wit-software.com
Fri Apr 24 16:06:08 CEST 2009
Hello, I'm having problems with wchar in Linux. I've built expat with:
./configure --prefix=/home/humpback/bin/expat CFLAGS="-g -O2
-fshort-wchar" CPPFLAGS="-DXML_LARGE_SIZE -DXML_UNICODE_WCHAR_T"
--disable-shared --enable-static
make buildlib LIBRARY=libexpatwf.la
make installlib LIBRARY=libexpatwf.la
I then modified one of the samples provided in expat and built (source is attached):
g++ -DXML_LARGE_SIZE -DXML_UNICODE_WCHAR_T -O0 -g3 -Wall -c
-fmessage-length=0 -MMD -MP -MF"expattests.d" -MT"CPPTestes.d"
-o"expattests.o" "expattests.cpp"
g++ -L/home/humpback/bin/expat/lib -o"expattests" expattests.o -lexpatwf
When i run the resulting code I get errors in printf because the data is
not valid. Can someone help me?
--
Gustavo Felisberto.
WIT-Software, Lda
Coimbra (Portugal), San Jose (California)
Phone: +351239801030
Web: http://www.wit-software.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: expattests.cpp
Type: text/x-c++src
Size: 1289 bytes
Desc: not available
URL: <http://mail.libexpat.org/pipermail/expat-discuss/attachments/20090424/8077c12c/attachment.cpp>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: OpenPGP digital signature
URL: <http://mail.libexpat.org/pipermail/expat-discuss/attachments/20090424/8077c12c/attachment.pgp>
More information about the Expat-discuss
mailing list