- From: <twm139@its.to>
- Date: Sat, 1 Sep 2001 18:35:55 -0600 (MDT)
- To: <www-lib@w3.org>
I have seen some references to compiling libwww linked programs statically, but as with those posts that mention it I get linker errors when I try to compile with the -static. I am trying to compile some of the examples gcc -o load -static `libwww-config --cflags` load.c `libwww-config --libs` /usr/lib/libwwwcore.a(HTWWWStr.o): In function `HTMessageIdStr': HTWWWStr.o(.text+0x849): the use of `tmpnam' is dangerous, better use `mkstemp' /usr/lib/libwwwcore.a(HTInet.o): In function `HTGetTmpFileName': HTInet.o(.text+0x8a4): the use of `tempnam' is dangerous, better use `mkstemp' /usr/lib/libwwwapp.a(HTInit.o): In function `HTConverterInit': HTInit.o(.text+0x221): undefined reference to `HTXML_new' HTInit.o(.text+0x248): undefined reference to `HTXML_new' /usr/lib/libwwwapp.a(HTInit.o): In function `HTTransferEncoderInit': HTInit.o(.text+0x472): undefined reference to `HTZLib_inflate' /usr/lib/libwwwapp.a(HTInit.o): In function `HTContentEncoderInit': HTInit.o(.text+0x4c1): undefined reference to `HTZLib_inflate' collect2: ld returned 1 exit status This is the example that grabs a URL and returns its length. Dynamically linked compiles work fine. The reason I want to be able to compile a static binary is that I want to be able to place the program I am writing onto a RO filesystem and not depend on any local libraries. So if anyone has any suggestions I would greatly appreciate it. Thanks, Terrence
Received on Saturday, 1 September 2001 20:35:57 UTC