xcode4 call a static library. Procedure:
1. Link in the build phase of the project binary with libraries to add a static library in connection
2 Set the search path, user search header paths as $ (BUILT_PRODUCTS_DIR). Set recursive.
3 Set the other link flags to-ObjC
But compile error
Undefined symbols for architecture i386:
ld: symbol (s) not found for architecture i386
collect2: ld returned 1 exit status
Really can not handle it. Expert help. Thank you!
Reply:
Tip already understand more, you use static library target machine CPU architecture and engineering you need is not the same.
Reply:
Indeed, the problem of static library. Armcc recompile with a static library, you should be fine.
Reply:
Static library does not recognize, or library path problem too
Reply:
But in the demo is in accordance with arm6, arm7 compiled. Can be used.
In my application where it is not, report this error.
Reply:
Will it be a reference to xcode3 xcode4 static library will have a problem?
Reply:
I also encountered a similar problem that I was put under Xcode3 symbol (s) not found in XCODE4 compiled under lib. Get the answer that? Landlord.
No comments:
Post a Comment