Hi,
I am trying to link a static library written by me and compiled with gcc (libtest.a) with XCode 3.1 project. After writing the library, I dragged the library file to the Frameworks folder as I've been doing previously.
But now whenever I call a function from the library( int myFuction( int ) ) and build the project I get the following ld error:
ld warning: in /Users/dev/lib/libtest.a, file is not of required architecture
Undefined symbols:
"_myFunction", referenced from:
_test_Function in mytest.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
It seems that lib file is being located properly but for some reason ld can't find symbols in the file. Anyone have any idea how I go about fixing this problem? Help will be appreciated.
--
Thanks,
Salman
I am trying to link a static library written by me and compiled with gcc (libtest.a) with XCode 3.1 project. After writing the library, I dragged the library file to the Frameworks folder as I've been doing previously.
But now whenever I call a function from the library( int myFuction( int ) ) and build the project I get the following ld error:
ld warning: in /Users/dev/lib/libtest.a, file is not of required architecture
Undefined symbols:
"_myFunction", referenced from:
_test_Function in mytest.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
It seems that lib file is being located properly but for some reason ld can't find symbols in the file. Anyone have any idea how I go about fixing this problem? Help will be appreciated.
--
Thanks,
Salman