Overview
Features
Download
Documentation
Community
Add-Ons & Services

Linkage Problem for an iPhone project

Please post support and help requests here.

Linkage Problem for an iPhone project

Postby frankmail007 » 19 Dec 2009, 11:13

I encountered a linkage problem in my iPhone project. Here is the steps I create and build my project:

1. Configure POCO 1.3.6 as:

Code: Select all
configure --config=iPhone --omit=Data,NetSSL_OpenSSL


2. make

3. I didn't install the library, instead it's in my project directory.

4. I added "Header Search Paths" and "Library Search Paths" correctly.

5. Created a view base library and add some code for decompress in my code, I changed the m file to mm so that it can be compiled.

6. I added -lPocoFoundation -lPocoZip in "Other Link Flag"

7. Build and Go

There is no problem to compile my source code. The problem is I got some linkage error like:

Poco::Zip::ZipInputStream::~ZipInputStream()", referenced from: xxxx.o
symbol(s) not found.

Anyone has experience at compile and link Poco into iPhone project? Any suggestion will be appreciated.

Thanks
frankmail007
 
Posts: 9
Joined: 16 Mar 2009, 18:22

Re: Linkage Problem for an iPhone project

Postby frankmail007 » 21 Dec 2009, 04:34

Is there any tutorial regarding using Poco C++ library in a iPhone Xcode project?
frankmail007
 
Posts: 9
Joined: 16 Mar 2009, 18:22

Re: Linkage Problem for an iPhone project

Postby frankmail007 » 21 Dec 2009, 14:15

Actually my way to link to static library in Xcode is wrong. I fixed it by removing -lPocoFoundation from Other C Flags and add all the .a files to Xcode directly. In this way I have no problem to link to other static library (e.g. my testing library libtest.a). But it still doesn't work for Poco. I doubt if there is anybody using it in iPhone.
frankmail007
 
Posts: 9
Joined: 16 Mar 2009, 18:22


Return to Support

Who is online

Users browsing this forum: No registered users and 1 guest