Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

error:'implicit declaration of function 'nslog' is invalid at C99'

Tags:

iphone

How can I fix this error: 'implicit declaration of function 'nslog' is invalid at C99'. please tell something about this error why this is occuring.

like image 559
ajeet Avatar asked Mar 07 '13 06:03

ajeet


2 Answers

Upper/lower case is important in Objective-C, so the correct use is not nslog but NSLog.

like image 88
Joachim Isaksson Avatar answered Sep 28 '22 05:09

Joachim Isaksson


It may be because you haven’t added the foundation framework to your project.

Right click on your top level project folder, click Add -> Exisiting Frameworks and add ‘Foundation Framework’ from the list.

like image 24
Abha Avatar answered Sep 28 '22 03:09

Abha