objective c - Foundation/NSObject.h: No such file or directory what the reason on windows -


When I compiled a purpose-c code on Windows, I found this error

  $ Gcc -o abc main.m contains MyClass.m file: 2, from the main. M: 2: myclass.h: 1: 32: Foundation / NSObject.h: No such file or directory in MyClass file included. M: 2, from main.m: 2: myclass.h: 4: error: '(' token myclass.h: 6: error: error: Interface declaration for 'NSObject' can not be found, 'myclass' superclass 'Code'  

Why is it? How can I fix it?

Thanks after posting this question, I got help with Dear Franks I HV, so the command to compile it in the window environment is

  gcc 'gnustep-config --objc-flags` - o muff man.m-l / gn us Intervention / System / Library / Libraries -elobijesi-Ligstip-base  

Thanks for all.


Comments