Reputation: 32081
I'm trying to add the hypen library to my Xcode iOS project and it has 4 files: hyphen.c, hyphen.h, hnjalloc.c, hnjalloc.h. I dragged them to my project and hit build, but I'm getting undefined symbols for architecture i386 errors. Am I supposed to take any other steps besides dragging them to my project?
Upvotes: 2
Views: 3072
Reputation: 11
right click on the Source folder (top left where all the folder are) and check add. Then choose the files you wish to add. I tried drag&drop had problems with linker.
Upvotes: 1
Reputation: 3616
Make sure you've added them to the build target - including a file into the project without including in the build target can easily cause this error.
Upvotes: 5