This is the list of small examples using the very basic features of the Library. If you have not already compiled the library then please read the Installation guide before you continue. If you want more details of how to use the Library then please read the User's Guide.
In the example we assume that the compiler knows where to look for the Library
include file WWWLib.h
and also knows where to find the binary
library, often called libwww.a
on Unix platforms and
libwww.lib
on Windows. Again, the result might depend on the
setup of the dynamic modules, but if no dynamic modules are enabled then
the example will generate an executable file. If you are in doubt about how
to set your compiler then you can often get some good ideas by looking into
the Line Mode Browser, the
Command Line Tool, and the
Robot which all run on both Unix and
Win32. If you are using the GNU autoconf configure script then
the examples are built as part of the overall package. On
other platforms, you must provide the make
file on your own.
Some platforms require a socket library when building network applications. This is for example the case when building on Macintosh or Windows machines. The Library uses the GUSI socket library on the Macintosh and the WinSock library on windows platforms. Please check the documentation on these libraries for how to install them and also if there are any specific requirements on your platform when building network applications.
You can also have a look at the more complete example applications which are capable of doing more interesting things. If you have any example code that you would like to share with us then please send us a mail so that we can add it to this page.