[Expat-discuss] Using precompiled expat.dll
Spyros Liapis
liapis@liaison.gr
Thu Aug 8 04:26:04 2002
Hi,
I 've downloaded and used successfully expat on unix using the expat package.
I tried to use expat on windows platform using the expatwin32 package.
I am using gcc compiler. How can I use the precompiled dll of expat?
(I have not installed (yet :)) cygwin, neither using the MS Visual developer studio)
I am not much of a windows programmer :)
I am familiar with unix programming environment.
I tried to use the makefile below:
CC=gcc
CFLAGS= -I..\expat\include
LDFLAGS= -g
LIBS= -L..\expat\lib -lexpat
OBJS= elements.o
xmlapp: $(OBJS)
$(CC) $(LDFLAGS) -o run $(OBJS) $(LIBS)
in include dir there is the expat.h include file
and in lib dir there are libexpat.lib and libexpat.dll
If I am right .lib .dll corresponds to .a .so in unix respectively (??)
anyway...
C:\EXPAT-~1.4\mytest>make
gcc -I..\expat\include -c -o elements.o elements.c
gcc -g -o run elements.o -L..\expat\lib -lexpat
c:/djgpp/bin/ld.exe: cannot find -lexpat
collect2: ld returned 1 exit status
make.exe: *** [xmlapp] Error 1
any ideas or change compiler?
thanx.
spyros.