如何在 Windows XP 中的 GNUstep 中查找头文件
我对目标 c 完全陌生。我正在尝试编译一个非常基本的“hello world”程序,但问题是 gcc 编译器无法找出我的头文件在哪里。我在 cygwin bash shell 上写道:
$ gcc -lobjc hello.m -o hello
给出的错误是:
hello.m:9:25: fatal error: foundation.h no such file or directory
我在 windows xp 上使用 GNUstep,已经安装了所需的所有组件。我知道并且已经看到头文件存在。请有人指导我如何找到这些文件?或者我应该如何发出命令来自己定位文件?有没有其他可能的方法可以让我永久知道头文件位于此文件夹中。
另外,请有人指出一个很好的链接,我可以从那里学习目标 c。实际上,我正在准备自己构建一个 iPhone 应用程序,并且由于某些原因需要在 Windows 上进行几周的练习......
请帮助我。预先非常感谢
I am completely new to objective c. I am trying to compile a very basic program of "hello world", but the problem is that gcc compiler can't figure out where my header files are. I wrote on cygwin bash shell:
$ gcc -lobjc hello.m -o hello
and error given was:
hello.m:9:25: fatal error: foundation.h no such file or directory
I am using GNUstep on windows xp, having installed all the components needed. I know and have seen that header files are present. Please someone can guide me how can I locate those files? Or how should i give command to locate files myself? Is there any other possible way that I can permanently tell that in this folder header files are located.
And also please can someone point out to a good link from where I can learn objective c. Actually I am preparing myself to built an iPhone app and needs to do practice on windows for some weeks due to some reasons....
Please help me. Thanks a lot in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我发现了问题并找到了解决方案。实际上,我已经使用 cygwin 安装了 GNUstep sys ,这就是编译器无法找出正确目录的原因。我的安装不正确。所以我卸载了所有并重新安装:
现在一切正常。
有关安装的更多帮助可以从此处获得
I found out problem and figured out solution for this. Actually I had installed GNUstep sys with cygwin thats why compiler could not figured out the correct directory. My installation was incorrect. So I uninstalled all and reinstalled:
and now everything is going fine.
More help on installation can be get from here