In the last post i have discussed the procedure of installing the GNUstep compiler on a windows machine and using it to compile the objective-c code.
But as you all must have felt that the procedure for compiling the code was a bit tedious and raw, so here is the make file version of compilation as promised in the last post.
Create a file named "makefile" and into that file put the following lines:
first : first.m
gcc -o first.exe first.m -I /C/GNUstep/GNUstep/System/Library/Headers \
-L /C/GNUstep/GNUstep/System/Library/Libraries \
-lobjc -lgnustep-base -fconstant-string-class=NSConstantString
Then on the GNUstep shell , make sure you are in the same folder as your source and makefile , type the command "make" and hopefully you will get the error free result.
Hope this makes the process a bit easy.
Regards,
Ishan
No comments:
Post a Comment