Install Cygwin, including the gcc and make packages, if you have not already done so.
Perform the remainder of the installation from within a Cygwin terminal window.
If you downloaded the sources: Unpack, compile, and install them using these commands:tar xfvz w3c-libwww-5.4.0.tar.gz cd w3c-libwww-5.4.0 ./configure --with-zlib make make install
The sources are no longer needed once the installation is complete; you may delete them if you wish by:
rm -rf w3c-libwww-5.4.0 w3c-libwww-5.4.0.tar.gz
If you downloaded the binaries: Unpack and install them using these commands:
cd / tar xfvj ~/w3c-libwww-5.4.0-cygwin.tar.bz2
The archive file is no longer needed once the installation is complete; you may delete it if you wish by:
Whether you chose the sources or the binaries, the libraries themselves will have been installed in /usr/local/lib, the corresponding set of *.h files in /usr/local/include/w3c-libwww/, and the libwww-config utility in /usr/local/bin.
To compile a C source file that references these libraries (without performing the final linking step), you may use libwww-config to generate an appropriate set of gcc options:
This command produces foo.o (not foo.obj).
To link one or more *.o files with the libwww libraries into an executable (*.exe) file, use a command such as:
This command creates foo.exe (not just foo). Note that three invocations of libwww-config, as shown, may be needed in order to resolve all dependencies.
Sets of libwww binaries are available for all popular platforms; links are available here.