Unable to find standard libraries when compiling Objective-C using GNUstep on Windows Unable to find standard libraries when compiling Objective-C using GNUstep on Windows windows windows

Unable to find standard libraries when compiling Objective-C using GNUstep on Windows


Have a look here. It seems like one needs a bunch of parameters to the compile command.


try to run this command line in your command. it worked for me.

gcc -I"c:/GNUstep/GNUstep/System/Library/Headers" -L "c:/GNUstep/GNUstep/System/Library/Libraries" -o hello helloWorld.m -lobjc -lgnustep-base -fconstant-string-class=NSConstantString


I just made a file called "GNUmakefile" and plonked this into it:

include ${GNUSTEP_MAKEFILES}/common.makeTOOL_NAME = MyAppMyApp_OBJC_FILES = code.minclude ${GNUSTEP_MAKEFILES}/tool.make

then I proceeded to just type 'make' at the prompt. The output is written out to obj\MyApp.exe

That did it for me. screw stuffing about with gcc command line.