我是第一次接触这个iPhone。所以我安装了GNUstep编译器并导入了一个小程序。现在我想编译这段代码并执行代码...我使用下面的代码实现了这一点:
gcc -o hello hello.m -I/c/GNUstep/GNUstep/System/Library/Headers \
-L /c/GNUstep/GNUstep/System/Library/Libraries -lobjc -lgnustep-base \
-fconstant-string-class=NSConstantString但是它给出的错误是
1./GNUstep/GNUstep/system/library/libraries:permission denied
2.ld.exe : cannot find -lobjc
3.ld.exe : cannot find -lgnustep-base-fconstant-string-class=NSConstantString
collect2:id returned 1 exit status请帮助我,任何人..我是否也向其中添加了任何新的库?
发布于 2013-11-14 00:34:18
尝试使用以下命令:
$ gcc `gnustep-config --objc-flags` -o hello hello.m -L C:/GNUstep/GNUstep/Syst
em/Library/Libraries -lobjc -lgnustep-base发布于 2012-05-31 21:41:01
你可以简单地查看我的You tube教程:here
发布于 2016-03-13 13:04:08
我使用GNUstep GORM创建一个Objective-C项目。GORM会自动生成一个GNUmakefile。如果要使用命令行样式编译项目,请打开Shell (您可以关闭GORM),使用cd命令切换到项目目录,然后输入make。GNUstep将编译该项目(在GNUmakefile之后)。在http://www.nongnu.org/gstutorial/en/ch10.html有一个简单的项目,作者是Yen-Ju Chen。
https://stackoverflow.com/questions/5897819
复制相似问题