我在iOS项目中使用Tesseract OCR库。我的项目是在RubyMotion中构建的,由于重复的符号,它无法链接Tesseract lib:
Link ./build/iPhoneSimulator-5.0-Development/myapp.app/myapp
duplicate symbol _main in:
/Users/Me/Documents/myapp/vendor/Tesseract/libtesseract_all.a(svpaint.o)
./build/iPhoneSimulator-5.0-Development/objs/main.o
ld: 1 duplicate symbol for architecture i386
Grepping项目发现了20个int main()实例。有没有办法重命名main()函数,或以其他方式解决此符号冲突?