Unix Programming - (expat?) Xml parser as static code?

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > October 2004 > (expat?) Xml parser as static code?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author (expat?) Xml parser as static code?
John Smith

2004-10-22, 7:49 am

Hello

I'm in need of a xml parser that is able to compile staticly under both
Win32 and Linux. For now I was using expat but it seems to compile into a
..so file under linux. This is not very good when I want to redistribute my
software.
I know expat uses autoconf, and libtool. Maybe theres some switch to force
it to compile staticly but I'm not very sharp into autoconf. Their own
mailinglist wasn't very helpful though as noone responded to this question.
Maybe one of you would know or can recommend another xml parser which is
extremely simple and easy to use under many platforms.

Thanks in advance.

-- John


Måns Rullgård

2004-10-22, 7:49 am

"John Smith" <john.smith@x-formation.com> writes:

> Hello
>
> I'm in need of a xml parser that is able to compile staticly under both
> Win32 and Linux. For now I was using expat but it seems to compile into a
> .so file under linux. This is not very good when I want to redistribute my
> software.
> I know expat uses autoconf, and libtool. Maybe theres some switch to force
> it to compile staticly but I'm not very sharp into autoconf. Their own
> mailinglist wasn't very helpful though as noone responded to this question.
> Maybe one of you would know or can recommend another xml parser which is
> extremely simple and easy to use under many platforms.


Try ./configure --enable-static

--
Måns Rullgård
mru@mru.ath.cx
Nils O. Selåsdal

2004-10-22, 7:49 am

John Smith wrote:
> Hello
>
> I'm in need of a xml parser that is able to compile staticly under both
> Win32 and Linux. For now I was using expat but it seems to compile into a
> .so file under linux. This is not very good when I want to redistribute my
> software.

You should be able to get a static library.
try ./configure --enable-static --disable-shared

--
Nils O. Selåsdal
www.utelsystems.com
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com