User`s manual

32 Building Applications
PCIS-DASK
Application Building Fundamentals in Linux
3.3 Application Building Fundamentals in Linux
The following sections provide fundamental instructions when
using PCIS-DASK to build application in Linux. To create a data
acquisition application using PCIS-DASK/X and GNU C/C++, fol-
low these steps:
Edit the source files
Include the header file dask.h in the C/C++ source files that call
PCIS-DASK/X functions. The dask.h has all the function declara-
tions and constants that you can use to develop your data acquisi-
tion application. Add this statement in your code to include the
header file.
#include "dask.h"
Build your application
Using the appropriate C/C++ compiler (gcc or cc) to compile the
program. You should add -lpci_dask option to link
libpci_dask.so library. For multi-threaded applications, the
-lpthread string is required. For example:
gcc -o testai testai.c -lpci_dask