【发布时间】:2011-07-01 20:23:13
【问题描述】:
我有以下文件 testf.h:
#ifndef TESTF_H_
#define TESTF_H_
int test(int what){
return what;
}
#endif
我在 TestAppDelegate.h 中包含/导入了它(用于我的 xcode 项目中的其他 .m 文件)。我得到一个重复的符号错误。如果我在一个 .m 文件中包含/导入了 testf.h,而该文件从未包含/导入到其他文件中,那么它可以正常工作。所以看起来#ifndef/#define/#endif 没有效果。有没有办法解决这个问题?
谢谢
【问题讨论】:
标签: iphone objective-c c xcode ios4