Aditya Athavale
Aditya Athavale

Reputation: 183

Undefined symbols for architecture i386:

I am getting following error while trying to use pdf.h and pdf.mm in my application.

ld: warning: ignoring file /Users/aditya/Desktop/PDFStudy/zdll.lib, file was built for archive which is not the architecture being linked (i386)

"_convertPDF", referenced from:

  -[PDFStudyViewController readPDF] in PDFStudyViewController.o

ld: symbol(s) not found for architecture i386

collect2: ld returned 1 exit status

Upvotes: 0

Views: 1344

Answers (1)

Nekto
Nekto

Reputation: 17877

This is because your library /Users/aditya/Desktop/PDFStudy/zdll.lib was compiled for other architectures, for example, arm6 or arm7 used in iPhones.

You are probably testing your app in simulator, which requires library to be compiled for architecture i386.

Upvotes: 4

Related Questions