title: iOS: CocoaLumberjack: implicit declaration of function is invalid in c99
body: <p>I'm trying to implement CocoaLumberjack on my app as framework but I'm having some issues. Here is my implementation on my AppDelegate.h:</p>
  
  <pre><code>#import "AppDelegate.h"
  #import &lt;CocoaLumberjack/CocoaLumberjack.h&gt;
  - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
      [DDLog addLogger:[DDASLLogger sharedInstance]];
      [DDLog addLogger:[DDTTYLogger sharedInstance]];
      DDFileLogger *fileLogger = [[DDFileLogger alloc] init];
      fileLogger.maximumFileSize = 1024 * 1024;
      fileLogger.rollingFrequency = 60 * 60 * 24; // 24 hour rolling
      fileLogger.logFileManager.maximumNumberOfLogFiles = 7;
      [DDLog addLogger:fileLogger];
      DDLogWarn(@"blablabla");
      DDLogError(@"Broken sprocket detected!");
      DDLogVerbose(@"User selected file:%@ withSize:%u", @"temp/test/log.txt", 100000);
      return YES;
  }
  </code></pre>
  
  <p>In the app delegate has no issues. But in my ViewController:</p>
  
  <pre><code>- (void)viewDidLoad {
      [super viewDidLoad];
       DDLogError(@"something when wrong!!!"); // &lt;-- implicit declaration of function is invalid in c99
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/hrWd5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hrWd5.png" alt="implicit declaration of function is invalid in c99"></a>
  Any of you knows what is wrong or any work around this error?</p>
  
  <p>I'll really appreciate your help.</p>