From dfdf0c58980d4e44c1a1a01913628c813b175b3c Mon Sep 17 00:00:00 2001 From: Mark Liversedge Date: Tue, 28 Sep 2021 20:00:22 +0100 Subject: [PATCH] Fixup last commit linker error (Future's algorithm) .. last commit introduced a compiler error on missing global variables. the intention here is to take future's algorithm, embed into a class and add wrappers for user charts / datafilters. --- src/Core/main.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Core/main.cpp b/src/Core/main.cpp index 97fb34d0c..8126f7bf0 100644 --- a/src/Core/main.cpp +++ b/src/Core/main.cpp @@ -76,6 +76,15 @@ QDesktopWidget *desktop = NULL; HttpListener *listener = NULL; #endif +// future's algorithm (needs to be refactored into a class) +extern "C" { +#include "../contrib/voronoi/vdefs.h" +int sorted, triangulate, plot, debug, nsites, siteidx ; +float xmin, xmax, ymin, ymax ; +Site * sites ; +Freelist sfl ; +} + // R is not multithreaded, has a single instance that we setup at startup. #ifdef GC_WANT_R #include