1
我正试图在mac应用程序商店中部署应用程序。converter-sample.c包含重复主要
我通过添加代码来验证。根据该documentation我compleated的follwing的recipts
的过程工作步骤安装ASN1C使用sudo port install asn1c
- 文件
modlule.asn1
在列表1-1中的目录asn1c_dir
中。 cd asn1c_dir
asn1c -fnative-types module.asn1
在Xcode中“添加现有文件”,并添加
- 尝试建立
- 然后,但我得到〜900个错误
- 在目标构建设置,我检查旁边的复选框“始终搜索用户路径”
asn1c_dir
目录
现在我得到一个错误说“重复的符号/foo/bar/ppc/converter-sample.o _main和/foo/bar/ppc/main.o
我已经跟踪这一个事实,即它看起来像,文件转换器 - sample.c文件声明它自己的int main()
函数,它是坏的吧?
任何帮助,将不胜感激。
您是否尝试过在converter-sample.c中注释main()函数? – 2011-01-13 05:52:14