1
我們有一個帶有Objective-c類和暴露的C API的庫來使用這些類。 現在在iOS上,我想鏈接它與C代碼庫。 如何將此庫靜態鏈接到c代碼庫。用C/C++鏈接目標C庫代碼庫
請建議。
我嘗試以下,並給予下列錯誤:
$gcc -static cApp.c -L. -lTestLib
ld: library not found for -lcrt0.o
collect2: ld returned 1 exit status
$
請幫 感謝