tags:

views:

102

answers:

2

I'm trying to use clucene from inside an iPhone application, and I'm running into issues with my include statements. Specifically, imports like stdexcept, vector, etc are failing.

The same code compiled fine under XCode using the x86_64 sdk, but fails when I switch to the iPhone Simulator 3.1 sdk. It seems like XCode might be changing the gcc settings under the hood, but I'm not sure how to check.

Anyone seen anything like this before?

Thanks, Zac

A: 

I believe this has something to do with thumb settings. Try turning off "Compile for Thumb" in your build settings.

Joe Cannatti
A: 

We wound up using EXTERN to call into the c++ api's from the Objective C. It's working well now.

zeedunk