QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 877|回复: 1

静态编译出现的问题!

[复制链接]
发表于 2005-10-31 22:03:53 | 显示全部楼层 |阅读模式
请教: 因为管理员在机群上没有安装libjpeg, mjpegtools等库, 我得把程序静态编译在上面运行。可是静态编译的时候有下面的提示, 其中libgraph是别人的一个图形库, 我在程序中调用了函数。 不知掉怎么解决。


/usr/X11R6/lib/libX11.a(x11trans.o)(.text+0x70): In function `_X11TransSocketOpen':
: warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/X11R6/lib/libX11.a(x11trans.o)(.text+0xa35): In function `_X11TransSocketINETConnect':
: warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/X11R6/lib/libX11.a(x11trans.o)(.text+0xa74): In function `_X11TransSocketINETConnect':
: warning: Using 'getservbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/home/xiongzm/lib/libgraph.a(menu.o)(.text+0x21f7): In function `DefineDouble':
: undefined reference to `log10'
/home/xiongzm/lib/libgraph.a(menu.o)(.text+0x2a8f): In function `genericmenu':
: undefined reference to `pow'
/home/xiongzm/lib/libgraph.a(menu.o)(.text+0x2b0c): In function `genericmenu':
: undefined reference to `pow'
/home/xiongzm/lib/libgraph.a(menu.o)(.text+0x374f): In function `genericmenu':
: undefined reference to `pow'
/home/xiongzm/lib/libgraph.a(menu.o)(.text+0x37e: In function `genericmenu':
: undefined reference to `pow'
/home/xiongzm/lib/libgraph.a(menu.o)(.text+0x67bd): In function `genericmenu':
: undefined reference to `pow'
/home/xiongzm/lib/libgraph.a(menu.o)(.text+0x6836): more undefined references to `pow' follow
/home/xiongzm/lib/libgraph.a(menu.o)(.text+0x738f): In function `DefineFloat':
: undefined reference to `log10'
/home/xiongzm/lib/libgraph.a(neuzeichnen.o)(.text+0x704): In function `vec_scale':
: undefined reference to `sqrt'
/home/xiongzm/lib/libgraph.a(neuzeichnen.o)(.text+0x30ca): In function `neu_zeichnen2':
: undefined reference to `sqrt'
/home/xiongzm/lib/libgraph.a(color.o)(.text+0x83): In function `GreenRedColRamp':
: undefined reference to `sin'
/home/xiongzm/lib/libgraph.a(draw2dgraph.o)(.text+0x76f): In function `draw2dgraph':
: undefined reference to `log'
/home/xiongzm/lib/libgraph.a(draw2dgraph.o)(.text+0x782): In function `draw2dgraph':
: undefined reference to `log'
/home/xiongzm/lib/libgraph.a(draw2dgraph.o)(.text+0x79b): In function `draw2dgraph':
: undefined reference to `log'
/home/xiongzm/lib/libgraph.a(draw2dgraph.o)(.text+0x7ae): In function `draw2dgraph':
: undefined reference to `log'
/home/xiongzm/lib/libgraph.a(draw2dgraph.o)(.text+0x859): In function `draw2dgraph':
: undefined reference to `log'
/home/xiongzm/lib/libgraph.a(draw2dgraph.o)(.text+0x876): more undefined references to `log' follow
/home/xiongzm/lib/libgraph.a(ufield.o)(.text+0x1d): In function `ufield':
: undefined reference to `sin'
/home/xiongzm/lib/libgraph.a(ufield.o)(.text+0x31): In function `ufield':
: undefined reference to `cos'
/home/xiongzm/lib/libgraph.a(tfield.o)(.text+0x237): In function `tfield':
: undefined reference to `atan2'
/home/xiongzm/lib/libgraph.a(tfield.o)(.text+0x259): In function `tfield':
: undefined reference to `sin'
/home/xiongzm/lib/libgraph.a(tfield.o)(.text+0x26: In function `tfield':
: undefined reference to `cos'
/home/xiongzm/lib/libgraph.a(koord.o)(.text+0x56): In function `Koordinatenachse':
: undefined reference to `log10'
/home/xiongzm/lib/libgraph.a(koord.o)(.text+0xdb): In function `Koordinatenachse':
: undefined reference to `pow'
/home/xiongzm/lib/libgraph.a(koord.o)(.text+0xf3): In function `Koordinatenachse':
: undefined reference to `pow'
/home/xiongzm/lib/libgraph.a(koord.o)(.text+0x109): In function `Koordinatenachse':
: undefined reference to `pow'
/home/xiongzm/lib/libgraph.a(koord.o)(.text+0xdbc): In function `KoordinatenachseLog2':
: undefined reference to `log10'
/home/xiongzm/lib/libgraph.a(koord.o)(.text+0xe09): In function `KoordinatenachseLog2':
: undefined reference to `log10'
/home/xiongzm/lib/libgraph.a(koord.o)(.text+0xe3e): In function `KoordinatenachseLog2':

: undefined make: *** [myContour] Interrupt
make: *** Deleting intermediate file `myContour.o'
发表于 2005-11-1 09:20:47 | 显示全部楼层
有部分是数学库,但log10之类的从哪出来的?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-3 04:23 , Processed in 0.038325 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表