zekyll / OMPEval

Fast C++ poker hand evaluator and equity calculator
ISC License
173 stars 69 forks source link

Symbol lookup error #7

Open jnftj opened 7 years ago

jnftj commented 7 years ago

Hi, would you happen to have an example for how to compile the .so file? I'm including all the libraries and when I run the example in Java I get "symbol lookup error: /usr/lib/libompdelta.so: undefined symbol: _ZN3omp13CombinedRangeC1Ev"

I've tried including all of the .o files but get the same. This is what I run: g++ -std=c++11 -I$JAVA_HOME/include -I$JAVA_HOME/include/linux -I./omp -I./ ompdelta.cpp -o libompdelta.so -Llib/ompeval.a -Lomp/*.o -shared -fPIC

samg861 commented 6 years ago

I've got the same issue - did you ever manage to solve?

vkresch commented 4 years ago

@samg861 @HorGra I added a CMakeLists.txt. You can build it know with cmake. See my PR.