Closed pultar closed 2 years ago
I also had to include a header file that defines NULL
(using a C++ 11 compiler):
#include <cstddef>
Let me know if you want that addition included as well.
It's a C example, therefore we should use the C header.
There were discussions in the past whether xtb
should provide a C++ header as well, I didn't really get around to develop a proper C++ API for xtb
, but I think it would be desirable to have a more C++ friendly way to work with the C-API than relying on C and C++ being just similar enough to work.
The minimal example from the C API does not compile because the variable
double energy
has never been defined.Signed-off-by: Felix Pultar felix.pultar@phys.chem.ethz.ch