Cython build resulting in undefined symbol

后端 未结 2 846
隐瞒了意图╮
隐瞒了意图╮ 2021-01-05 18:22

I\'ve got a c++ program I\'m trying to wrap/convert to Cython. It uses a particular library that for some reason, will not result in a working module for importing. There is

2条回答
  •  被撕碎了的回忆
    2021-01-05 18:37

    You should use nm -C, to unmangle your symbols. It also looks like you are mixing static and shared libraries which is generally not a good idea. Also, gcc's linker is a one pass linker which means the order of library flags matters. You want to list the libraries in reverse dependency order. In other words, if a depends on b, then b must appear before a in the linker flags.

提交回复
热议问题