undefined reference to `errno'

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

undefined reference to `errno'

920件の閲覧回数
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 返答(返信)

863件の閲覧回数
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 件の賞賛
返信

863件の閲覧回数
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 件の賞賛
返信