簡體   English   中英

為什么顯示此錯誤消息“命令/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang失敗,退出代碼為1”

[英]Why show this error message “Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang failed with exit code 1”

我正在嘗試將tesseract集成到我的應用程序中。 當我運行我的應用程序時,它顯示的是波紋管。 如果刪除tesseract文件,該應用程序將正常運行而不會出現錯誤。 可能是什么問題?

顯示的錯誤是:

ld:/ Lutful Kabir /項目/名片閱讀器/DBZiCardReader/DBZiCardReader/build_dependencies/dependencies/lib/libtesseract_all.a(svpaint.o)和/ Users / foyzulkarim / Library / Developer / Xcode / DerivedData / DBZiCardReader-中的重復符號_main awawphfeoprlwqgcmoohhievukcx / Build / Intermediates / DBZiCardReader.build / Debug-iphonesimulator / DBZiCardReader.build / Objects-normal / i386 / main.o對於體系結構i386命令/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang++失敗,退出代碼1

如何刪除此錯誤消息?

lang已找到2個_main符號。

  • libtesseract_all.a內部的svpaint.o中的一個
  • 一個在您的main.m文件中

libtesseract要么期望您有一個依賴於svpaint.o中主程序的項目(也許有一些對此效果的說明),要么期望您不導入任何會導致必須包含svpaint.o的項目。作為鏈接的一部分(也許您正在導入一個像svpaint.h這樣的libtesseract頭文件……或者是導入一個導入它的東西……這僅意味着作為使用其庫的示例之一……)

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM