From 0f7d6139569459446cff81905b2693d4d6b97e71 Mon Sep 17 00:00:00 2001 From: Pablo Oliveira Date: Wed, 21 Jul 2021 12:24:01 +0200 Subject: [PATCH] Fix linking problem against libqmckl --- tests/qmckl_test_h5.cpp | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/tests/qmckl_test_h5.cpp b/tests/qmckl_test_h5.cpp index 584824a..4e552cf 100644 --- a/tests/qmckl_test_h5.cpp +++ b/tests/qmckl_test_h5.cpp @@ -2,7 +2,11 @@ #include "hdf5/serial/hdf5.h" #include "Helpers.hpp" + +extern "C" { #include "qmckl.h" +} + #include "assert.h" #ifdef HAVE_CONFIG_H #include "config.h" @@ -86,13 +90,13 @@ int test_cycle(H5::H5File file, int cycle, std::string version, double tolerance // const uint64_t cdim = dim; // const uint64_t cnupdates = nupdates; // const uint64_t* ccol_update_index = col_update_index; - // const double* cu = u; + // const double* cu = u; // rc = qmckl_sherman_morrison_c( - // context, - // cdim, - // cnupdates, - // cu, - // ccol_update_index, + // context, + // cdim, + // cnupdates, + // cu, + // ccol_update_index, // slater_inverse_nonpersistent); const uint64_t Dim = 2; const uint64_t N_updates = 2;