There are three options for using Urdl in an application:
Urdl uses bjam
and Boost.Build to build shared and static
libraries. To build the libraries, perform the following steps:
BOOST_ROOT
environment variable pointing to the
location of Boost.
OPENSSL_ROOT
environment
variable pointing to the location of OpenSSL. When building on UNIX, the
build scripts assume that the OpenSSL headers and libraries may be found
in the system's include and library paths, respectively. To disable Urdl's
SSL support, define URDL_DISABLE_SSL=1
as an environment
variable.
bjam
in the top-level directory of the Urdl distribution.
Libraries should be built into the lib
subdirectory.
Then, to use Urdl in an application:
include
subdirectory to your compiler's include
path.
lib
subdirectory to your linker's library path.
stage/lib
) to
your linker's library path. Urdl needs the application to link against
the Boost.System and Boost.Date_Time libraries.
URDL_DISABLE_SSL=1
to your compiler's preprocessor definitions.
URDL_DYN_LINK=1
to your compiler's preprocessor definitions.
To compile Urdl directly into an application, perform the following steps:
include
subdirectory to your compiler's include
path.
src/urdl.cpp
to your project or makefile.
stage/lib
) to
your linker's library path. Urdl needs the application to link against
the Boost.System and Boost.Date_Time libraries.
URDL_DISABLE_SSL=1
to your compiler's preprocessor definitions.
URDL_NO_LIB=1
to your compiler's
preprocessor definitions to disable autolinking.
To use Urdl as a header-only library, perform the following steps:
include
subdirectory to your compiler's include
path.
stage/lib
) to
your linker's library path. Urdl needs the application to link against
the Boost.System library and possibly the Boost.Date_Time library.
URDL_DISABLE_SSL=1
to your compiler's preprocessor definitions.
URDL_HEADER_ONLY=1
to your compiler's preprocessor
definitions.