So I am trying to use a C library in a Objective-C, iPhone project. I am getting this linker error when I try to compile:
file was built for unsupported file format which is not the architecture being linked (i386)
I build this library using the standard
./configure make
Which architecture should I build this with to work with iPhone project? Thanks! Update
I updated the Makefile and added -arch i386 to the CFLAGS line. When I run make I now this get this error:
Compiling spammer.c gcc -o spammer spammer.o ../src/libircclient.a -lpthread ld: warning: in ../src/libircclient.a, file was built for unsupported file format which is not the architecture being linked (x86_64)
Does this mean I need to edit another makefile somewhere??