0

I can't figure out why I'm getting the warning ⚠️

Using Xcode 11.1 the default Xcode compiler MacOS Catalina.

Implicitly declaring library function 'printf' with type 'int (const char *, ...)'

Include the header or explicitly provide a declaration for 'printf'

#include <stdio.h>

int main( int argc, const char* argv[] ){
    printf("Hello World\n");
}

The header was included.

Error Screenshot

Something is wrong with the Xcode on the new MacOS Catalina? I'm missing something?

Thanks in advance

0xAlon
  • 123
  • 1
  • 1
  • 10
  • 1
    Your code is correct. There must be a problem with your toolset/compiler/IDE/setup. – Jabberwocky Oct 09 '19 at 11:20
  • 1
    I think there are specific issues with header files under the latest MacOS 'Catalina'. Apple seems to have changed/rearranged some things. There have been several similar questions over the past couple of days. See also [this question](https://stackoverflow.com/questions/58278260/cant-compile-a-c-program-on-a-mac-after-upgrading-to-catalina-10-15). – Steve Summit Oct 09 '19 at 11:54
  • @SteveSummit So we'll have to wait until they fix it ... – 0xAlon Oct 09 '19 at 12:18

0 Answers0