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

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

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

6,401件の閲覧回数
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.

ラベル(2)
0 件の賞賛
返信
2 返答(返信)

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

3,374件の閲覧回数
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