这些小活动你都参加了吗?快来围观一下吧!>>
电子产品世界 » 论坛首页 » 嵌入式开发 » MCU » Undefined symbol: flsub ,不知道在哪有??

共3条 1/1 1 跳转至

Undefined symbol: flsub ,不知道在哪有??

菜鸟
2007-07-18 05:08:43     打赏

我把代码包含到vxworks image中,就可以运行,

如果把代码分出来,变成zm.out,装载的时候就出现如下错误,

开始怀疑是组件没配置,找了半天也没发现,在风河提供的源代码中,也没发现类似的symbol

-> ld <zm.out

Undefined symbol: flsub (binding 1 type 0)

Undefined symbol: fladd (binding 1 type 0)

Undefined symbol: ultofl (binding 1 type 0)

Undefined symbol: flmul (binding 1 type 0)

Undefined symbol: fldiv (binding 1 type 0)

Undefined symbol: flcmp (binding 1 type 0)

Undefined symbol: ltofl (binding 1 type 0)

Undefined symbol: fltodb (binding 1 type 0)

Undefined symbol: dbtofl (binding 1 type 0)

Undefined symbol: fltused (binding 1 type 0)

Undefined symbol: fltol (binding 1 type 0)

Undefined symbol: dbcmp (binding 1 type 0)

Undefined symbol: dbmul (binding 1 type 0)

Undefined symbol: dbdiv (binding 1 type 0)

ld error: Module contains undefined symbol(s) and may be unusable.

value = 0 = 0x0




关键词: Undefined     symbol     flsub     不知    

菜鸟
2007-07-18 05:10:00     打赏
2楼

我把代码包含到vxworks image中,就可以运行,

如果把代码分出来,变成zm.out,装载的时候就出现如下错误,

开始怀疑是组件没配置,找了半天也没发现,在风河提供的源代码中,也没发现类似的symbol

-> ld <zm.out

Undefined symbol: flsub (binding 1 type 0)

Undefined symbol: fladd (binding 1 type 0)

Undefined symbol: ultofl (binding 1 type 0)

Undefined symbol: flmul (binding 1 type 0)

Undefined symbol: fldiv (binding 1 type 0)

Undefined symbol: flcmp (binding 1 type 0)

Undefined symbol: ltofl (binding 1 type 0)

Undefined symbol: fltodb (binding 1 type 0)

Undefined symbol: dbtofl (binding 1 type 0)

Undefined symbol: fltused (binding 1 type 0)

Undefined symbol: fltol (binding 1 type 0)

Undefined symbol: dbcmp (binding 1 type 0)

Undefined symbol: dbmul (binding 1 type 0)

Undefined symbol: dbdiv (binding 1 type 0)

ld error: Module contains undefined symbol(s) and may be unusable.

value = 0 = 0x0


菜鸟
2007-07-18 06:49:00     打赏
3楼

编译器浮点运算引起的问题。这些函数是由编译器(toolchan)自己产生的,与操作系统无关。你的.out中应该有浮点运算的数据和语句吧?

须要确认.out是否采用了与OS image相同的编译器浮点指示规则。

最好不要在.out包含浮点预算的情况下与OS使用不同的编译器来编译。

如果仍然有问题,可否提供点详细情况,包括Os Image和.out的编译输出。


共3条 1/1 1 跳转至

回复

匿名不能发帖!请先 [ 登陆 注册 ]