Can't Load Boost.python Module - Undefined Symbols
I have a library that I wrote in C and need to access from Python, so I wrapped it using Boost.Python. I can compile my library into a Boost .so file with no problems, but when I t
Solution 1:
After running nm
on a few of my object files, I found that in the undefined symbol _Z12simplex_freeP7simplex
was defined in simplex.o as just simplex_free
, presumably because it was compiled from simplex.c using gcc. In other words, I think gcc and g++ were naming things differently from one another, so I switched everything to g++ and compiled my C code as C++, and that resolved the issue.
Post a Comment for "Can't Load Boost.python Module - Undefined Symbols"