[Expat-discuss] Re: Conflict with two expat shared libraries

Steinar Bang sb at dod.no
Fri Sep 3 07:34:14 CEST 2004


>>>>> "Karl Waclawek" <karl at waclawek.net>:

> You can also load the UTF-16 version of Expat dynamically using
> dlopen() and dlsym().

Thanx for the pointer!  For me, since I'm using Qt, it would be even
simpler to use the QLibrary class:
	http://doc.trolltech.com/3.3/qlibrary.html

But either way, I would have to make changes to the code itself, and
if I don't decide to go this way on Win32 as well (where it isn't
neccessary), I'll get a lot of #ifdefs in the code.

I was sort of hoping there was a way to achive the effect of dlsym()
in static linking, through flags given to the linker.  I've been
reading the ld() man page some, but I haven't seen anything I
understand, that points to this.

So I'm still pondering the approach to take.

Thanx!


- Steinar




More information about the Expat-discuss mailing list