I added // for the #include <Cocoa/Cocoa.h> to start programming the interface of NSApplication and receive the error specified in the code I just typed here :
//
// main.m
// Hostile
//
// Created by Besleaga Alexandru Marian on 10/20/21.
//
// #include <Cocoa/Cocoa.h>
int main(int argc, const char * argv[]) {
@autoreleasepool {
// Setup code that might create autoreleased objects goes here.
}
return NSApplicationMain(argc, argv);
}
There error message is the following :
Implicit declaration of function 'NSApplicationMain' is invalid in C99