Comments (10)
copysign* is C99/C++ TR1, apparently still not in std namespace with gcc 4.7. Remove std:: in front of it and see if it helps. If you provide a patch, we'll test and include it for future releases.
from poco.
I just removed the std from in front of copysign and copysignf and it fixed my gcc compile problem for iOS.
from poco.
please post a patch here, or send pull request
from poco.
pull request submitted.
from poco.
merged in to develop for next release:
Will leave this issue open for better visibility.
from poco.
Digging a little deeper, there are several options to fix this:
- Removing the "std" in front of "copysign" indeed fixes the issue for iOS and Android, but only for "copysign" definition. For the others (isinf, isnan, etc.) removing "std" fixes the build for Android, but breaks it for iOS ... I don't really know how to manage this...
- On a side note, it seems that removing the "-DPOCO_NO_FPENVIRONMENT" from the Android build configuration (in build/config/Android) fix the compilation issue. However, it seems that it's intentionally disabled so I don't know if it's a viable option.
Any insights would be appreciated :)
Thanks,
BQ.
PS: The submitted patch only fixes the iOS build. Android one is still broken.
from poco.
The best permanent solution is probably our usual way to deal with this kind of problem: separate .h/.cpp files.
from poco.
I can surely give it a try. What would you suggest for naming ?
FPEnvironment_ANDROID and FPEnvironment_IOS ?
from poco.
That will work. FPEnvironment_DUMMY should remain as is now (all in std:: except copysign*).
from poco.
End of the discussion here : #62
from poco.
Related Issues (20)
- Some of icompare overloads are error prone HOT 1
- ServerApplication has no pidfile option on windows
- Causing websocket to disconnect and the client not receiving any messages
- Poco::Path::forDirectory("C:") throws if the path is disk-letter only
- Poco::FileStream std::fstream HOT 3
- Process::launch to execute tail -n command, when n > 100 , wait() func while never return HOT 1
- Building on Windows and Integrating to UE5 gives PocoFoundation.lib error HOT 4
- Serving a Static Web Page and NTDDLL Error
- I met this Error [ConnectionAbortedError: [WinError 10053] An established connection was aborted by the software in your host machine]
- qnx build error on 1.13.3 release:_NTO_THREAD_NAME_MAX was not declared and tName was not declared HOT 1
- Util::IniFileConfiguration of an ecrypted stream (Crypto::CryptoInputStream) using wrong password, hangs
- Poco::UUID/UUIDGenerator: add support for Version 7 UUIDs
- POCO 1.13.3 Crypto_vs170.vcxproj build fails when using external openssl HOT 8
- Update of libpng and zlib in component PDF
- can't compile with poco 1.13 HOT 2
- MacOS ARM64 build warning: 'OS_CODE' macro redefined HOT 5
- MacOS ARM64 build error: symbol `fdopen` is duplicated defined HOT 7
- NetSSL_OpenSSL runtime error on Windows
- Performance(time) affected because of PR #4429 in LogFileImpl::writeImpl FLUSH. #4429 #2443 code changes due to this has impacted performance. HOT 5
- Significant performance degradation of Poco::DateTimeParser HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from poco.