开发者

Linkage issue when using Poco C++ 1.3.6 for iPhone Xcode project

开发者 https://www.devze.com 2022-12-15 00:16 出处:网络
I managed to compile Poco C++ 1.3.6 library for iPhone by the following commands: ./configure --config=iPhone --no-tests --omit=Data,Cryptor,NetSSL_OpenSSL

I managed to compile Poco C++ 1.3.6 library for iPhone by the following commands:

./configure --config=iPhone --no-tests --omit=Data,Cryptor,NetSSL_OpenSSL  
./make

Then I created a new view-based Application for iPhone and add Header search paths and changed my .m file to .mm. And then I开发者_Go百科 added the newly compiled .a files into my Xcode project. When I hit "Build & Go", I encountered a few linkage errors such as:

Poco::Zip::ZipArchieve .... Symbol(s) not found

By using the same way I successfully compiled and linked my testing static library libtest.a. But I failed to link Poco C++ libraries. I don't know whether it's a bug or I missed something.

Can anybody help?

Thanks


Define POCO_STATIC in your project. Apparently, unless POCO_STATIC is defined, Poco headers attempt to use the dynamic libraries.

0

精彩评论

暂无评论...
验证码 换一张
取 消