@批处理 文件 sgcc
C:\GNUstep\mingw\bin\gcc.exe %1.m -o %1.exe -I C:\GNUstep\GNUstep\System\Library\Headers -L C:\GNUstep\GNUstep\System\Library\Libraries -lobjc -fobjc-exceptions -lgnustep-base -fconstant-string-class=NSConstantString -enable-auto-import
@环境搭配
http://ftpmain.gnustep.org/pub/gnustep/binaries/windows/
在上面的网站下载
gnustep-core-0.23.1-setup.exe
gnustep-system-0.23.0-setup.exe
Gorm-1.2.10-setup.exe
SystemPreferences-1.1.0-setup.exe
其中批处理文件中的%1意思是接收 命令行输入的第一个参数
@改进sgcc版本
@解释 set var =%1是设置变量var为输入的第一个参数
set var=%1
@解释 %var:~0,-2% 意思是 把变量var中的字符串从第0个字符开始截取截取到倒数第二个位置
C:\GNUstep\mingw\bin\gcc.exe %var:~0,-2%.m -o %var:~0,-2%.exe -I C:\GNUstep\GNUstep\System\Library\Headers -L C:\GNUstep\GNUstep\System\Library\Libraries -lobjc -fobjc-exceptions -lgnustep-base -fconstant-string-class=NSConstantString -enable-auto-import
@改成这样主要是为了 配置UltraEdit 中用的