glotzcc

synopsis

glotzcc [filename]

example

Consider the C++ code lennardjones.cpp, which does very little:

#include <glotzilla++.h>

int main(int argc, char **argv)
{
   MdSimulation simulation;
   return 0;                                      
}

To compile this code we need to link with the appropriate libraries, so that the class "MdSimulation" is defined. In the terminal window type:

host$ glotzcc lennardjones.cpp
host$ ./a.out

The glotzcc executable works the same way as gcc. For example, try:

host$ glotzcc -O3 lennardjones.cpp -o lj
host$ ./lj