Objective-C for Windows with Gitbash and GCC



当我使用 gitbash 和 gcc 编译东西时,有没有办法缩短我需要输入的内容?

为了编译我的helloworld程序,我必须输入以下内容:

gcc -o helloworld.exe helloworld.m -I C:/GNUstep/GNUstep/System/Library/Headers -L         C:/GNUstep/GNUstep/System/Library/Libraries -std=c99 -lobjc -lgnustep-base -fconstant-string-class=NSConstantString

大多数人使用Makefile(或相关的东西,例如CMake)来简化开发。生成文件类似于 bash 脚本(语法也相似)。创建生成文件后,您可以运行make它完全按照您指定的操作执行。

如果您想知道如何在Windows上运行Automake,请阅读以下内容: 如何在Windows中运行makefile?

最新更新