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)
- Poco::Thread setName
- Thread destructor HOT 1
- client certificate verification against hostname question HOT 1
- Upgrade bundled libexpat to 2.6.1
- Upgrade bundled PCRE2 to 10.43
- Bump CI action versions
- ProcessRunner does not detect launch errors
- DateTimeFormat RFC1036 Sunday name is short (should be long)
- Add Poco::Util::Timer::idle() method to check if timer has any tasks scheduled
- Poco::BasicMemoryStreamBuf is missing seekpos()
- PocoDoc: search support
- websockets server: 401 unauthorized
- Upgrade bundled libexpat to 2.6.2
- Poco::Optional iterator to enable "for-each" syntax HOT 2
- Couldn't establish an encrypted FTP data connection with FTP(S)ClientSession HOT 2
- Optional and Nullable Improvements HOT 1
- GitHub runner: Linux thread sanitizer tests fail with "unexpected memory mapping"
- ODBC Unicode wrappers do not check for null length pointers
- On Poco::Buffer<char> deallocation, free(): invalid next size (normal) HOT 2
- FAILED: bin/libPocoActiveRecord.dll lib/libPocoActiveRecord.dll.a HOT 1
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.