Installation guides are provided for the following platforms:
These instructions should work on most Linux distributions.
The following should be installed before Dasyne is compiled:
If installing from a repository, be sure to install the development version of the packages.
Compiling is as simple as:
If you would like to install somewhere other than the default location, you can pass --prefix=/my_location to the configure script. The last step, make install, should be performed as root.
Link your program to the dasyne, boost and zlib libraries:
g++ MyProgram.cpp -ldasyne -lz -lboost_system-mt
These instructions were tested on Windows Vista.
The following should be installed before Dasyne is compiled:
These instructions are for boost 1.46.1, but should work on later versions.
Boost Header filesCopy the "boost" directory from boost's base directory into mingw's "include" directory.
Boost Library FilesDasyne requires boost's multi-threaded system library. By default, Boost gives the library a different name depending on your compiler and the version of boost. On my system, I found:
Copy both libraries to MinGW's "lib" and "bin" folders.
The MINGDIR environment variable should be set to MinGW's base directory:
MinGW's bin directory should be added to the PATH variable.
Link your program to the dasyne, boost win32 and zlib libraries:
-ldasyne -lzlib1 -lboost_lib -lws2_32
The value of boost_lib will vary from system to system; on my system it's libboost_system-mgw44-mt-1_46_1
To use Dasyne, include Dasyne.hpp:
#include "Dasyne.hpp"
All classes, enumerations and constants belong to the libdasyne namespace. They can be accessed either by adding the namespace:
using namespace libdasyne;
or by specifying the scope:
libdasyne::DBuffer myBuffer;