I have a library in c++, from which I want to call some function. I have tried CxxWrap
, which kind of work and seems not stable and I sometimes got segmentation faults.
I tried to call the function using ccall((:myFunc, "....../libmyLib"), .....)
, but got errors like
ERROR: could not load symbol "myFunc":
....../libmyLib.so: undefined symbol: myFunc
I’ve checked the library with nm -gDC
, and the symbol is indeed there.
Does anyone have ideas about this issue? Thanks.