Skip to content

Commit fe142dd

Browse files
author
Giulia Baldini
committed
DLLexport needs to be added for each function for windows
1 parent 09551ce commit fe142dd

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

bico/_core.cpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,26 @@ extern "C"
109109
{
110110
return new BicoExternal(d, k, p, m, seed);
111111
}
112+
113+
#if defined(_WIN32) || defined(__CYGWIN__)
114+
__declspec(dllexport)
115+
#endif
112116
void addData(BicoExternal *bico, double const *array, uint n) { bico->addData(array, n); }
113117

118+
#if defined(_WIN32) || defined(__CYGWIN__)
119+
__declspec(dllexport)
120+
#endif
114121
void addPoint(BicoExternal *bico, double const *array) { bico->addPoint(array); }
115122

123+
#if defined(_WIN32) || defined(__CYGWIN__)
124+
__declspec(dllexport)
125+
#endif
116126
int compute(BicoExternal *bico, int *sample_weights,
117127
double *points) { return bico->compute(sample_weights, points); }
118128

129+
#if defined(_WIN32) || defined(__CYGWIN__)
130+
__declspec(dllexport)
131+
#endif
119132
void freeBico(BicoExternal *bico) {
120133
delete bico;
121134
}

0 commit comments

Comments
 (0)