Installation



Installation guides are provided for the following platforms:


Linux Instructions

These instructions should work on most Linux distributions.


Requirements

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

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.


Linking

Link your program to the dasyne, boost and zlib libraries:

g++ MyProgram.cpp -ldasyne -lz -lboost_system-mt


Windows MinGW Instructions

These instructions were tested on Windows Vista.


Requirements

The following should be installed before Dasyne is compiled:


Add Boost to MinGW

These instructions are for boost 1.46.1, but should work on later versions.

Boost Header files

Copy the "boost" directory from boost's base directory into mingw's "include" directory.

Boost Library Files

Dasyne 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.


Set Environment Variables

The MINGDIR environment variable should be set to MinGW's base directory:

MinGW's bin directory should be added to the PATH variable.


Compiling


Compiling Examples


Linking

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


Using Dasyne

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;











Back to Contents