what is reason for "undefined reference to `__ctype_ptr__'"

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

what is reason for "undefined reference to `__ctype_ptr__'"

5,262 Views
walm_nxp
Contributor II

I am using lpcxpresso 8.2 on Linux and NXP LPC1788 as target.

I am not able to solve linker-problem 'undefined reference to `__ctype_ptr__'', I really don't which library is needed here to solve it and how to tell linker to take it.

Labels (2)
0 Kudos
2 Replies

2,235 Views
lpcxpresso_supp
NXP Employee
NXP Employee

`__ctype_ptr__' does indeed come from Newlib, and is not part of Redlib.

Anyway, the compiler and linker library settings do indeed need to be kept in step. This will normally be done automatically if you use the "Quick Settings" option on the Quickstart Panel.

For more details see: https://community.nxp.com/message/630740 

Regards,

LPCXpresso Support

0 Kudos

2,235 Views
walm_nxp
Contributor II

Reason of problem here were different settings of used libraries.

On MCU C Compiler 'Library headers' was set to 'Newlib(Auto) but on MCU Linker Library was set 'Redlib (semihost)'.

After changing both to 'Newlib' problem was solved