How to run objective c simple program in windows
I just started my "Hello World" program in objective C on windows.I have installed all related software from "gnusetp.org" website. I make one hello world program and save it in "c:\hello.m" directory. I want to know how will i compile it ? wen i am running command prompt wi开发者_JS百科th gnsetup executable file i m seeing "sh.exe-41.$". What i have to do next to compile and run well ? Thanks
In the gnustep prompt, cd to C:\ and try this (note: this is just one line):
gcc -o hello.exe hello.m -std=c99 -I /GNUstep/System/Library/Headers -L /GNUstep/System/Library/Libraries -lobjc -lgnustep-base -fconstant-string-class=NSConstantString -fobjc-exceptions
精彩评论