ajeet
ajeet

Reputation: 163

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

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.

Upvotes: 7

Views: 11745

Answers (2)

Abha
Abha

Reputation: 1082

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.

Upvotes: 5

Joachim Isaksson
Joachim Isaksson

Reputation: 180987

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

Upvotes: 24

Related Questions