Building programs using heaspTo build a C++ program using the heasp library you need to use the standard heasoft tool i.e. hmake. This requires a Makefile in the following specific format.
HD_COMPONENT_NAME = heacore HD_COMPONENT_VERS = HD_CXXTASK = myprogram HD_CXXTASK_SRC_cxx = myprogram.cxx HD_CXXFLAGS = ${HD_STD_CXXFLAGS} -Wno-deprecated HD_CXXLIBS = ${HD_LFLAGS} ${HD_STD_CXXLIBS} -l${HEASP} \ ${XLIBS} ${SYSLIBS} HD_INSTALL_TASKS = include ${HD_STD_MAKEFILE} Here myprogram.cxx is the file containing the main routine. Any other C++ source files required can be added to the same line. This will build an executable file in the current directory. The default hmake install option is disabled but if the executable is to be placed in a particular place that command can be added to the HD_INSTALL_TASKS line.
HEASARC Home | Observatories | Archive | Calibration | Software | Tools | Students/Teachers/Public Last modified: Wednesday, 28-Aug-2024 16:49:35 EDT HEASARC Staff Scientist Position - Applications are now being accepted for a Staff Scientist with significant experience and interest in the technical aspects of astrophysics research, to work in the High Energy Astrophysics Science Archive Research Center (HEASARC) at NASA Goddard Space Flight Center (GSFC) in Greenbelt, MD. Refer to the AAS Job register for full details. |