Comments (6)
I solve it in my own code by doing
#include <boost/iostreams/detail/config/fpos.hpp>
#if defined(BOOST_IOSTREAMS_HAS_DINKUMWARE_FPOS)
#undef BOOST_IOSTREAMS_HAS_DINKUMWARE_FPOS
#endif
beforehand but I guess there should be a better way. Certainly the check should look for more than _YVALS now, since mingw includes yvals.h.
from iostreams.
The CI builds on AppVeyor pass, but they use the following build command (it is mingw inside msys2):
./b2 libs/iostreams toolset=gcc-mingw32 cxxstd=03 address-model=32 variant=release,debug -j3
I was going to suggest replacing the block you identified with the following:
#include <boost/predef/library/std.h>
#if (BOOST_LIB_STD_DINKUMWARE)
...
However after looking at the detection there, it relies on the same check for _YVALS
. Copying @grafikrobot since the Dinkumware detection probably needs to omit MinGW platforms. In fact, I'd suggest looking at the checks in iostreams to make sure we're not missing anything else in predef.
from iostreams.
The CI builds on AppVeyor pass, but they use the following build command (it is mingw inside msys2):
hi, compared to this configuration I'm building with clang and libc++, not gcc and libstdc++ - I guess this could be the difference ?
from iostreams.
@jcelerier append && !defined(_LIBCPP_VERSION)
at
from iostreams.
I have the same problem when compiling v1.72 using the same toolchain https://github.com/mstorsjo/llvm-mingw under Windows 7 x64 boostorg/build#557
So I have to apply the patch and see!
BTW, what command lines u used to bootstrap and compile it?
TIA.
from iostreams.
I face the same problem in v1.74 using clang and libc++ on Windows.
#106 fixes it. Please merge it.
from iostreams.
Related Issues (20)
- [Feature request] Request the ability to `sync` single component of chain
- No const overloads for getting the underlying device of boost::iostream::stream
- Using Boost.Iostreams and Bzip2 with link-time optimization can lead to a segmentation fault HOT 1
- iostreams\detail\streambuf\indirect_streambuf.hpp(440) : warning C4702: unreachable code HOT 3
- Cannot disable zstd with "bjam -sNO_ZSTD" in boost/1.78.0 HOT 1
- Hang forever when reset boost::iostreams::filtering_ostream with a broken sink device HOT 4
- cannot create an unsigned char bzip2 compressor HOT 5
- Double close possible in file_descriptor_impl::close_impl() HOT 4
- BOOST_DELETED_FUNCTION(...); produces 1683 "extra ‘;’ [-Wpedantic]" warnings. HOT 4
- gzip_decompressor() Segmentation fault HOT 1
- Gzip decompressor throws non-gzip_error HOT 12
- `file_descriptor` device leaks fd on Windows when constructed from int fd
- there is no warning number 4231 4660 HOT 2
- Object Lifetimes documentation missing.
- zstd filter: add support for parallel processing HOT 7
- boost::iostreams::stream<boost::iostreams::array> fails for size > 2GB when calling tellp HOT 5
- Incorrect comment about line ending characters
- Documentation format
- BOOST_ASSERT() in gzip.hpp triggers clang warning -Wstring-conversion
- No way to detect the return code of pubsync() during close()
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 iostreams.