[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
If you prefer to write your applications in C++, you may do so, but note that the WFDB library is written in C. (Most C++ compilers can be run in ANSI/ISO C compatibility mode in order to compile the WFDB library itself.) Each C++ source file that uses WFDB library functions must include `<wfdb/wfdb.h>', in order to instruct your compiler to use C conventions for argument passing and to use unmangled names for the WFDB library functions. In order for this to work, your C++ compiler should predefine `__cplusplus' or `c_plusplus'; if it predefines neither of these symbols, modify `<wfdb/wfdb.h>' so that the symbols `wfdb_CPP' and `wfdb_PROTO' are defined at the top of the file, or define `__cplusplus' in each of your source files before including `<wfdb/wfdb.h>'. Compile and link your program using whatever standard methods are supported by your compiler for linking C++ programs with C libraries. See your compiler manual for further information.