When building for iOS with Xcode 4.3 and up, another change is needed to the build configuration file located at <poco>/build/config/iPhone. Since Xcode and the platform SDKs for iOS are now self-contained in the Xcode.app's bundle, rather than being in a /Developer directory, I changed the line in the config file from this:

This worked for me using Xcode 4.5.2. Not that I mind configure/make, but it would be nice to have an Xcode project which had targets for the various Apple platforms, and did the 'lipo' script to zip the architectures together for iPhone and iPhoneSimulator.

I'm trying to compile POCO on the iPhone and I'm getting an error to do with FPEnvironment.h. For some reason I'm getting an error that copysignf and copysign are not a part of std librar. If I compile for Darwin I don't have any trouble. Below is the terminal window stuff.

just remove the std:: in front of the offending lines and it'll be ok. That was requested by Android users and it created a mess because copysign are C99 but not really C++ standard yet (just TR1). Will be properly taken care of in future releases.

davidraleigh wrote:I'm trying to compile POCO on the iPhone and I'm getting an error to do with FPEnvironment.h. For some reason I'm getting an error that copysignf and copysign are not a part of std librar.

I am also getting this error on Windows 7 when using cygwin, GCC version 4.5.3. I am trying to build poco-1.5.1. I note that the code in 1.5.1 does not include the fix for apple and android but even if it did, more is needed for cygwin.