I am trying to integrate libxml2 with PHP by linking it with
libxml2_a_dll.lib.However this is not happening.Apache throws following
warning.

PHP Warning: Cannot load module 'SimpleXML' because required module 'libxml'
is not loaded in Unknown on line 0

I have added libxml.obj to STATIC_EXT_OBJS and libxml2_a_dll.lib to
STATIC_EXT_LIBS and LIBXML_STATIC_FOR_DLL to STATIC_EXT_CFLAGS.

Following are the two crucial lines in the makefile for obtaining library
libxml2_a_dll.lib .

.c{$(LIBXML_STATIC)}.obj:
$(CC) $(INCLUDE_FLAGS) $(CFLAGS) /D "LIBXML_STATIC" /D
"LIBXML_STATIC_FOR_DLL" /Fo$(LIBXML_STATIC)\ /c $<

all: $(STATIC_OBJS) $(SO_OBJS)
lib.exe /nologo /OUT:$(LIBXML_STATIC)\libxml2_a_dll.lib $(STATIC_OBJS)

I am novice to such kind of job.Can anyone please help me.

Thanks,
Chhaya

Reply via email to