From 5d87ab96718f6bfc710222787d4e497ce5eb86dd Mon Sep 17 00:00:00 2001 From: Ceriel Jacobs Date: Mon, 8 Aug 2022 01:10:12 +0200 Subject: [PATCH] For windows, made generation of .dll files work --- include/vlog/edb.h | 14 +++++++------- include/vlog/edbconf.h | 2 +- src/vlog/forward/edbfcinternaltable.cpp | 2 +- src/vlog/forward/fcinttable.cpp | 2 +- src/vlog/ml/helper.cpp | 1 + win64/vlog-core/vlog-core.vcxproj | 16 +++++++++++++--- 6 files changed, 24 insertions(+), 13 deletions(-) diff --git a/include/vlog/edb.h b/include/vlog/edb.h index 7ddfb36f..d52872bb 100644 --- a/include/vlog/edb.h +++ b/include/vlog/edb.h @@ -148,21 +148,21 @@ class EDBLayer { VLIBEXP void addTridentTable(const EDBConf::Table &tableConf, bool multithreaded); - void addTopKTable(const EDBConf::Table &tableConf); + VLIBEXP void addTopKTable(const EDBConf::Table &tableConf); - void addEmbTable(const EDBConf::Table &tableConf); + VLIBEXP void addEmbTable(const EDBConf::Table &tableConf); #ifdef MYSQL - void addMySQLTable(const EDBConf::Table &tableConf); + VLIBEXP void addMySQLTable(const EDBConf::Table &tableConf); #endif #ifdef ODBC - void addODBCTable(const EDBConf::Table &tableConf); + VLIBEXP void addODBCTable(const EDBConf::Table &tableConf); #endif #ifdef MAPI - void addMAPITable(const EDBConf::Table &tableConf); + VLIBEXP void addMAPITable(const EDBConf::Table &tableConf); #endif #ifdef MDLITE - void addMDLiteTable(const EDBConf::Table &tableConf); + VLIBEXP void addMDLiteTable(const EDBConf::Table &tableConf); #endif VLIBEXP void addInmemoryTable(const EDBConf::Table &tableConf); VLIBEXP void addSparqlTable(const EDBConf::Table &tableConf); @@ -178,7 +178,7 @@ class EDBLayer { NamedSemiNaiver prevSemiNaiver; // need to import the mapping predid -> Predicate from prevSemiNaiver - void handlePrevSemiNaiver(); + VLIBEXP void handlePrevSemiNaiver(); std::string name; diff --git a/include/vlog/edbconf.h b/include/vlog/edbconf.h index d4f05fa3..6f3306c5 100644 --- a/include/vlog/edbconf.h +++ b/include/vlog/edbconf.h @@ -32,7 +32,7 @@ class EDBConf { void setRootPath(std::string path); - std::string getRootPath() const; + VLIBEXP std::string getRootPath() const; const std::vector &getTables() const { return tables; diff --git a/src/vlog/forward/edbfcinternaltable.cpp b/src/vlog/forward/edbfcinternaltable.cpp index 0d7e6457..72e75d1f 100644 --- a/src/vlog/forward/edbfcinternaltable.cpp +++ b/src/vlog/forward/edbfcinternaltable.cpp @@ -38,7 +38,7 @@ std::pair, SegmentInserter oldTuples(nfields); SegmentInserter newTuples(nfields); auto itr = getSortedIterator(); - Term_t row[nfields]; + Term_t row[256]; while (itr->hasNext()) { itr->next(); for(size_t i = 0; i < nfields; ++i) { diff --git a/src/vlog/forward/fcinttable.cpp b/src/vlog/forward/fcinttable.cpp index 8d34dcd0..f58296dc 100644 --- a/src/vlog/forward/fcinttable.cpp +++ b/src/vlog/forward/fcinttable.cpp @@ -558,7 +558,7 @@ std::pair, SegmentInserter newTuples(nfields); auto itr = getSortedIterator(); - Term_t row[nfields]; + Term_t row[256]; while (itr->hasNext()) { itr->next(); for(size_t i = 0; i < nfields; ++i) { diff --git a/src/vlog/ml/helper.cpp b/src/vlog/ml/helper.cpp index 64076ff7..245f21d4 100644 --- a/src/vlog/ml/helper.cpp +++ b/src/vlog/ml/helper.cpp @@ -4,6 +4,7 @@ #include #include #include +#include #include using namespace std; diff --git a/win64/vlog-core/vlog-core.vcxproj b/win64/vlog-core/vlog-core.vcxproj index dbc73c4e..873122a8 100644 --- a/win64/vlog-core/vlog-core.vcxproj +++ b/win64/vlog-core/vlog-core.vcxproj @@ -27,9 +27,12 @@ - - - + + + + + + @@ -48,9 +51,16 @@ + + + + + + +