undefined reference to `errno'

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

undefined reference to `errno'

999 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mhjerde on Sat Mar 13 04:24:39 MST 2010
I'm haunted by this error message.

At some point during development this error always appears, usually together with a number of warnings ('previous implicit declaration'). That warning means that the prototype comes after the function is called which is not the case here. So something strange is going on.
Turning off optimization has no effect. I'm using the LPCxpresso 1343.

Any suggestions as to what is going on?
0 项奖励
回复
2 回复数

942 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mhjerde on Sat Mar 13 09:44:44 MST 2010
Thanks!

Changing from Redlib (none) to Redlib (nohost) fixed it.
0 项奖励
回复

942 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Sat Mar 13 07:20:33 MST 2010
Hi,

errno is a standard part of the C library.

When building with redlib, the error  is normally (but not exclusively) caused by using <math.h> in your application. The resolution is simple - just change the settings to link with the Redlib (nohost) library.

For more details, see:
http://lpcxpresso.code-red-tech.com/LPCXpresso/node/30
0 项奖励
回复