Cocoalumberjack: Implicit declaration of function 'DDLogError' is invalid in C99

Created on 28 Aug 2014  路  9Comments  路  Source: CocoaLumberjack/CocoaLumberjack

Hi! I'm trying to use this amazing framework but I'm getting some errors, how can I solve it?I

screen shot 2014-08-28 at 20 48 20

Most helpful comment

Ensure you do a

#import "CocoaLumberjack.h"

instead of a

 #import "DDLog.h"

The DDLogError is defined in "DDLogMacros.h". "CocoaLumberjack.h" will load "DDLogMacros.h" together with "DDLog.h".

All 9 comments

Same problem. Not present in 1.9.2. Just in latest version.

I also get this in 2.0.0beta. FWIW, I installed it as a pod.

Ensure you do a

#import "CocoaLumberjack.h"

instead of a

 #import "DDLog.h"

The DDLogError is defined in "DDLogMacros.h". "CocoaLumberjack.h" will load "DDLogMacros.h" together with "DDLog.h".

Update the project README and moved the relevant notes to the top:

https://github.com/CocoaLumberjack/CocoaLumberjack/blob/master/README.md#cocoalumberjac-2-pre-release-notes

I was having this issue as well. I had to make sure my project's prefix.pch file #import(ed)

I got this problem when I followed the "GettingStarted.md" file in the Documentation. You might want to update it.

The documentation is updated

Also feel free to make pull request for documentation files.

Importing "CocoaLumberjack.h" worked for me

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Jason-Chan picture Jason-Chan  路  10Comments

ivulyov90 picture ivulyov90  路  6Comments

Eddpt picture Eddpt  路  8Comments

medisean picture medisean  路  5Comments

mrinalsymc picture mrinalsymc  路  13Comments