Array initialization to NULL throws Link Error

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

Array initialization to NULL throws Link Error

1,249 Views
TVNAIDU
Contributor III

Trying to initialize array to NULL, gives Link error (Undefined : "__clear")

 

char ip_string[16] = {0};

 

anything wrong?. thanks.

Labels (1)
0 Kudos
Reply
2 Replies

685 Views
admin
Specialist II
With my development environment (Netburner NDDK Rel23_rc3 with wizard generated project), the compile is Ok.
0 Kudos
Reply

685 Views
CompilerGuru
NXP Employee
NXP Employee

The compiler is using a runtime library function to clear this array. So you have to link with the proper library. Sorry I'm not knownig CF by heart, so basically I would recommend to check where __clear comes from in a default wizard generated project.

 

Daniel

0 Kudos
Reply