Coder Social home page Coder Social logo

Comments (6)

jcelerier avatar jcelerier commented on June 12, 2024

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.

jeking3 avatar jeking3 commented on June 12, 2024

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.

jcelerier avatar jcelerier commented on June 12, 2024

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.

SquallATF avatar SquallATF commented on June 12, 2024

@jcelerier append && !defined(_LIBCPP_VERSION) at

&& !(defined(BOOST_MSVC) && _MSVC_STL_VERSION >= 141)

from iostreams.

tomay3000 avatar tomay3000 commented on June 12, 2024

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.

Gei0r avatar Gei0r commented on June 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.