Sample postprocessing programs to perform commonly exercised tasks are presented in separate sections in this chapter. These and other C++ postprocessing programs must be compiled and linked using the make parameter when running the ABAQUS execution procedure (see Execution procedure for ABAQUS/Make, Section 3.2.13 of the ABAQUS Analysis User's Manual). To link properly, the programs cannot contain a C++ main routine. Instead, the programs must begin with a C++ function called ABQmain.
#include <odb_API.h> int ABQmain(int argc, char **argv) { //Insert user code here return 0 }The arguments passed into the program upon execution will be passed into ABQmain as though it were the standard C++ main function. The compile and link commands used by the ABAQUS/Make procedure are determined by the settings of the compile_cpp and link parameters in the ABAQUS environment file.