Hi,
I add HTTP Digest Authentication Plug-in into webserver sample code. At first , I insert the following code into Makefile
--------------------------
----------
----------
----------
----------
----------
----------
----------
----------
----------
webserver: webserver.h webserver.c logging.o httpget.o httpform.o httpda.o threads.o options.o $(SOAPH) $(SOAPC)
$(GSOAP) -c webserver.h
$(CC) $(CFLAGS) -o webserver webserver.c logging.o httpget.o httpform.o httpda.o threads.o options.o soapC.c soapClient.c soapServer.c $(SOAPC) $(LIBS)
...
httpda.o: ../../plugin/httpda.h ../../plugin/httpda.c md5evp.o
$(CC) $(CFLAGS) -c ../../plugin/httpda.c md5evp.o
md5evp.o: ../../plugin/md5evp.h ../../plugin/md5evp.c
$(CC) $(CFLAGS) -c ../../plugin/md5evp.c
...
--------------------------
----------
----------
----------
----------
----------
----------
----------
----------
----------
When I 'make', it tells me
--------------------------
----------
----------
----------
----------
----------
----------
----------
----------
----------
httpda.o: In function `http_da_disconnect':
httpda.c:(.text+0x138): undefined reference to `md5_handler'
httpda.o: In function `http_da_preparerecv':
httpda.c:(.text+0x1c4): undefined reference to `md5_handler'
httpda.o: In function `http_da_preparesend':
httpda.c:(.text+0x254): undefined reference to `md5_handler'
httpda.o: In function `http_da_prepareinit':
httpda.c:(.text+0x32a): undefined reference to `md5_handler'
httpda.o: In function `http_da_calc_response':
httpda.c:(.text+0x419): undefined reference to `md5_handler'
httpda.o:httpda.c:(.text+0
x440): more undefined references to `md5_handler' follow
--------------------------
----------
----------
----------
----------
----------
----------
----------
----------
----------
I can't figure out what's wrong.
Could someone tell me how to solve it? Thank you.
Start Free Trial