[英]xcode includes of header files
I am trying to compile a sample project for a browser plugin (http://pushingtheweb.com/2010/06/boilerplate-for-a-npapi-plugin/) using xcode 3.2.6 on Snow Leopard.我正在尝试在 Snow Leopard 上使用 xcode 3.2.6 为浏览器插件 (http://pushingtheweb.com/2010/06/boilerplate-for-a-npapi-plugin/) 编译示例项目。
I have never used xcode before.我以前从未使用过 xcode。
When I try to build I get an error with an include (AE/AERegistry.h: No such file or directory)当我尝试构建时,我收到包含错误(AE/AERegistry.h:没有这样的文件或目录)
When I click on the file it takes me to the header file AE.h (which is in folder /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/Headers) and has the lines:当我单击该文件时,它会将我带到 header 文件 AE.h(位于文件夹 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/Headers 中)并具有行:
ifndef __AEREGISTRY__
include <AE/AERegistry.h>
endif
Firstly I dont know how to find out why AE.h is included in the build as I cant see it "included" anywhere.首先,我不知道如何找出构建中包含 AE.h 的原因,因为我无法在任何地方看到它“包含”。
Secondly why cant it find AERegistry.h which is in four separate locations on the computer?其次,为什么它找不到位于计算机上四个不同位置的 AERegistry.h? I manually added one of the folders to the Header paths but it made no difference.
我手动将其中一个文件夹添加到 Header 路径中,但没有任何区别。
Why is it AE/AEReistry when it is not in a folder AE?为什么不在文件夹AE中时是AE/AEReistry?
Thanks for any help George感谢乔治的任何帮助
You'll have to go into the build settings, find "compiler flags"(CFLAGS), and add something like:您必须将 go 放入构建设置中,找到“编译器标志”(CFLAGS),然后添加如下内容:
-I/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/Headers
And then do:然后做:
#include <AERegistry.h>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.