1

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
4

1 に答える 1

0

ほとんどの人は、開発を容易にするために Makefile (または CMake などの関連するもの) を使用します。Makefile は bash スクリプトに似ています (構文も同様です)。Makefile を作成した後、実行することができ、make指定したとおりに実行されます。

Windows で Automake を実行する方法を知りたい場合は、これを読んでください: How to run a makefile in Windows?

于 2013-09-26T18:52:24.877 に答える