avatar
Help: undefined symbol# Programming - 葵花宝典
y*g
1
为迎接奥运,特换新形象。
祝福奥运,祝福北京。
大家来个我打个分吧,谢谢。:)
avatar
y*e
2
I need wrap a project into Python. All C++ classes are built as a shared
library libGORGON.so. The boost.python wrapper file is built as
libpyGORGON.so. But when I try to import libpyGORGON in Python prompt. I got
error:
Python 2.4.4 (#1, Oct 23 2006, 13:58:18) [GCC 4.1.1 20061011 (Red Hat
4.1.1-30)] on linux2 Type "help", "copyright", "credits" or "license" for
more information.
>>> import libpyGORGON.so
Traceback (most recent call last):
File "", line 1, in ?
ImportError: /data2/Gorgo
avatar
m*d
3
很好看很喜庆!赞一个10分!
mm也帮俺评个分吧~
avatar
t*t
4
> c++filt _ZTIN8wustl_mm13Visualization8RendererE
typeinfo for wustl_mm::Visualization::Renderer
so this one is missing.
when you say you have _ZTIN8wustl_mm13Visualization8RendererE (by using nm
to check), what symbol does it have? You sure it's not U?
PS how did your last question go? care to update?

got

【在 y****e 的大作中提到】
: I need wrap a project into Python. All C++ classes are built as a shared
: library libGORGON.so. The boost.python wrapper file is built as
: libpyGORGON.so. But when I try to import libpyGORGON in Python prompt. I got
: error:
: Python 2.4.4 (#1, Oct 23 2006, 13:58:18) [GCC 4.1.1 20061011 (Red Hat
: 4.1.1-30)] on linux2 Type "help", "copyright", "credits" or "license" for
: more information.
: >>> import libpyGORGON.so
: Traceback (most recent call last):
: File "", line 1, in ?

avatar
j*i
5
好!古典美!打分了!10分!
麻烦您也给俺打个分吧!呵呵!

【在 y**********g 的大作中提到】
: 为迎接奥运,特换新形象。
: 祝福奥运,祝福北京。
: 大家来个我打个分吧,谢谢。:)

avatar
y*e
6
噢,nm的结果果然是U:
U _ZTIN8wustl_mm13Visualization8RendererE
U的意思是“This symbol is undefined”。到底是怎么回事呢?
如果我用nm libGORGON.so | grep blahblah
就会什么也不返回,返回U是指有declaration,没有definition吗?
非常感谢你,thrust,最近我的很多问题都能从你那里得到答案。

【在 t****t 的大作中提到】
: > c++filt _ZTIN8wustl_mm13Visualization8RendererE
: typeinfo for wustl_mm::Visualization::Renderer
: so this one is missing.
: when you say you have _ZTIN8wustl_mm13Visualization8RendererE (by using nm
: to check), what symbol does it have? You sure it's not U?
: PS how did your last question go? care to update?
:
: got

avatar
t*8
7
爱国美女! 10分!
avatar
t*t
8

that's right. it has to be defined somewhere else.
Please show your appreciation by letting us know, whether and how
your problem is solved.

【在 y****e 的大作中提到】
: 噢,nm的结果果然是U:
: U _ZTIN8wustl_mm13Visualization8RendererE
: U的意思是“This symbol is undefined”。到底是怎么回事呢?
: 如果我用nm libGORGON.so | grep blahblah
: 就会什么也不返回,返回U是指有declaration,没有definition吗?
: 非常感谢你,thrust,最近我的很多问题都能从你那里得到答案。

avatar
d*x
9
为加油中国
avatar
y*e
10
问题解决了,Renderer是一个base class,定义了一个virtual destructor,
virtual ~Renderer();
但是没有define。改成:
virtual ~Renderer() {}
就可以了。
再次向thrust表示感谢。
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。