by davidraleigh » 12 Jan 2013, 15:48
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.
David-Raleighs-MacBook-Air:poco davidraleigh$ ./configure --config=iPhoneSimulator --no-tests --no-samples --omit=CppParser,CodeGeneration,Remoting/RemoteGen,Crypto,NetSSL_OpenSSL,Data/ODBC,Data/MySQL
Configured for iPhoneSimulator
David-Raleighs-MacBook-Air:poco davidraleigh$ make -s -j4
** Compiling src/ArchiveStrategy.cpp (debug, static)
** Compiling src/Base64Decoder.cpp (debug, static)
** Compiling src/Base64Encoder.cpp (debug, static)
** Compiling src/BinaryReader.cpp (debug, static)
In file included from include/Poco/FPEnvironment.h:47,
from include/Poco/NumericString.h:45,
from include/Poco/NumberFormatter.h:44,
from include/Poco/ArchiveStrategy.h:47,
from src/ArchiveStrategy.cpp:37:
include/Poco/FPEnvironment_DUMMY.h: In static member function ‘static float Poco::FPEnvironmentImpl::copySignImpl(float, float)’:
include/Poco/FPEnvironment_DUMMY.h:134: error: ‘copysignf’ is not a member of ‘std’
include/Poco/FPEnvironment_DUMMY.h: In static member function ‘static double Poco::FPEnvironmentImpl::copySignImpl(double, double)’:
include/Poco/FPEnvironment_DUMMY.h:140: error: ‘copysign’ is not a member of ‘std’
** Compiling src/BinaryWriter.cpp (debug, static)
make[1]: *** [/Users/davidraleigh/Documents/CODE/MobileProjects/ThirdPartyLibraries/poco/Foundation/obj/iPhoneSimulator/i686/debug_static/ArchiveStrategy.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [Foundation-libexec] Error 2
David-Raleighs-MacBook-Air:poco davidraleigh$