Author Topic: how to compile xerces-c using mingw32 ?  (Read 8058 times)

hongxing

  • Guest
how to compile xerces-c using mingw32 ?
« on: October 26, 2005, 02:40:39 pm »
I want to use C::B in windows and linux, the problem is my app use xerces-c as xml parsing.
I linux, I can using GNU make to compile xerces-c, when coming to Windows, I have to use mingw32.

my question is how to compile xerces-c using mingw32 in windows ? has anyone do that?

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: how to compile xerces-c using mingw32 ?
« Reply #1 on: October 26, 2005, 03:35:55 pm »
Quote
my question is how to compile xerces-c using mingw32 in windows ? has anyone do that?

I have and it's not trivial...
Be patient!
This bug will be fixed soon...

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Re: how to compile xerces-c using mingw32 ?
« Reply #2 on: October 26, 2005, 05:07:23 pm »
I'd use TinyXML, but if you need a good parser, why not use libxml2?

hongxing

  • Guest
Re: how to compile xerces-c using mingw32 ?
« Reply #3 on: October 27, 2005, 01:51:04 am »
It is not a new project, I am now porting it to windows 2000
====================
tinyXML can not support Unicode, so I can not use characters like Chinese, Korean.
============================
libxml2 is simple and high performance ? can it support Chinese/Korean characters? if is , why C::B not using it but tinyXML?
===============================
can libxml2 be compiled under mingw32?

takeshimiya

  • Guest
Re: how to compile xerces-c using mingw32 ?
« Reply #4 on: October 27, 2005, 02:23:26 am »
tinyXML is used in C::B because of it's simplicity and little overhead, it's not even a library, in fact it's only 3 .h/.cpp straight files.

As for other XML libraries, it depends on your needings, but you might want to look here:
http://xmlbench.sourceforge.net/results/features200402/index.html
http://xmlbench.sourceforge.net/results/benchmark200402/index.html

Xerces doesn't seems to be bad, but the binary size is HUGE and it's rather slow.
If I have to choose, I would choose libxml2 as rickg22 suggests, because it's well-featured and with good performance and library size overall.
« Last Edit: October 27, 2005, 02:29:38 am by takeshimiya »

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Re: how to compile xerces-c using mingw32 ?
« Reply #5 on: October 27, 2005, 04:38:33 am »
If I recall correctly, libxml2 also needs libiconv for the handling of unicode. But then again, i never used libxml2. I just know PHP uses it.

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Re: how to compile xerces-c using mingw32 ?
« Reply #6 on: October 27, 2005, 04:40:29 am »
Update: Check out this thread at the mingw mailing list.
http://sourceforge.net/mailarchive/message.php?msg_id=1225103

Hmmm... it appears Xerces-C can be compiled with GCC. But I'm not sure... are you sure there's not a makefile around?
« Last Edit: October 27, 2005, 04:47:51 am by rickg22 »

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: how to compile xerces-c using mingw32 ?
« Reply #7 on: October 27, 2005, 01:08:31 pm »
tinyXML can not support Unicode, so I can not use characters like Chinese, Korean.

Not true. tinyXML has been supporting UTF-8 for one and a half years.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."