W3C libwww libraries for Cygwin under MS-Windows

The new PhysioNet website is available at: https://physionet.org. We welcome your feedback.

Installing libwww

  1. Install Cygwin, including the gcc and make packages, if you have not already done so.

  2. Download the W3C libwww libraries, as sources or precompiled binaries, and save them in your Cygwin home directory (normally this will be c:\cygwin\home\your-Windows-login-name).

    Perform the remainder of the installation from within a Cygwin terminal window.

  3. 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:

            rm w3c-libwww-5.4.0-cygwin.tar.bz2

Using libwww

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:

        gcc -c `libwww-config --cflags` foo.c

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:

        gcc -o foo foo.o bar.o baz.o \
         `libwww-config --libs` \
         `libwww-config --libs` \
         `libwww-config --libs`

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.

Other platforms

Sets of libwww binaries are available for all popular platforms; links are available here.

Questions and Comments

If you would like help understanding, using, or downloading content, please see our Frequently Asked Questions.

If you have any comments, feedback, or particular questions regarding this page, please send them to the webmaster.

Comments and issues can also be raised on PhysioNet's GitHub page.

Updated Wednesday, 15 July 2015 at 13:17 EDT

PhysioNet is supported by the National Institute of General Medical Sciences (NIGMS) and the National Institute of Biomedical Imaging and Bioengineering (NIBIB) under NIH grant number 2R01GM104987-09.