undefined reference to `errno'

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

undefined reference to `errno'

278 Views
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 Kudos
2 Replies

221 Views
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 Kudos

221 Views
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 Kudos