next up previous contents index
Next: 6.6 Programming in FORTRAN Up: 6. Introduction Previous: 6.4 Extending NEMO environment   Contents   Index

6.5 Programming in C++

Most relevant header files from the NEMO C libraries have been made entrant for C++. This means that all routines should be available through:

    extern "C"  {    

The only requirement is of course that the main() be in C++. For this you have to link with the NEMO++ library before the regular NEMO library. So, assuming your header (-I) and library (-L) include flags have been setup, you should be able to compile your C++ programs as follows:

    % cppc -g -o test -lnemo++ -lnemo -lm

(c) Peter Teuben