mindwarpltd
asked on
I've got my GNUstep shell working with windows xp and can compile with shell, but how can I compile with a batch file?
I've got my GNUstep shell working with windows xp and can compile with shell, but how can I compile with a batch file?
This is the command line which works within the shell.
gcc `gnustep-config --objc-flags` -L /GNUstep/System/Library/Li braries test.m -o test.exe -lgnustep-base -lobjc
However, if I put this in a batch file I get...
--- batch file ---
C:\GNUstep\mingw\bin\gcc `gnustep-config --objc-flags` -L /GNUstep/System/Library/Li braries test.m -o test.exe -lgnustep-base -lobjc
pause
--- batch file ---
Heres the errors...
C:\My Documents\ObjC>C:\GNUstep\ mingw\bin\ gcc 'gnustep-config --objc-flags' -L /GNUstep/System/Library/Li braries test.m -o test.exe -lgnustep-base -lobjc
gcc: 'gnustep-config: No such file or directory
cc1obj.exe: error: unrecognized command line option "-fobjc-flags'"
C:\My Documents\ObjC>pause
Press any key to continue . . .
This is the command line which works within the shell.
gcc `gnustep-config --objc-flags` -L /GNUstep/System/Library/Li
However, if I put this in a batch file I get...
--- batch file ---
C:\GNUstep\mingw\bin\gcc `gnustep-config --objc-flags` -L /GNUstep/System/Library/Li
pause
--- batch file ---
Heres the errors...
C:\My Documents\ObjC>C:\GNUstep\
gcc: 'gnustep-config: No such file or directory
cc1obj.exe: error: unrecognized command line option "-fobjc-flags'"
C:\My Documents\ObjC>pause
Press any key to continue . . .
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
*luck
The file should be exactly as I posted: with #!/bin/bash in the first line.
Sorry, I will not make this thread as long as we used to have. My first comment is an answer. You are welcome to ask related questions about the bash script. We have on EE a special zone for it.
Sorry, I will not make this thread as long as we used to have. My first comment is an answer. You are welcome to ask related questions about the bash script. We have on EE a special zone for it.
ASKER
Just to confirm, that make.sh is in the right folder, re ls ?
ASKER
Needed to add sh in front
Administrator@IRON /c/My Documents/ObjC
$ sh make.sh
Administrator@IRON /c/My Documents/ObjC
$ sh make.sh
ASKER
Administrator@IRON /c/My Documents/ObjC
$ make.sh
sh: make.sh: command not found
Administrator@IRON /c/My Documents/ObjC
$ ls
fraction.d fraction.m hello.exe hello.m make.bat make.sh test.d test.exe test.m test1.d test1.exe test1.m test2.m