Boost logo

Boost-Build :

Subject: [Boost-build] context library of boost: compiling for windows 32 on ubuntu 64
From: Jack Kumba (kjack2151_at_[hidden])
Date: 2017-01-27 12:29:38


I want to compile libboost_context.a for windows 32 on my ubuntu 64.

for that, I specify the following in my user-config.jam file
using gcc : : "i686-w64-mingw32-g++" ;

and then, I run the following:
b2 --with-context toolset=gcc target-os=windows variant=release link=static
address-model=32 binary-format=pe architecture=x86

this gives me the following error:

libs/context/src/unsupported.cpp:7:2: error: #error "platform not supported"
 #error "platform not supported"

    "i686-w64-mingw32-g++" -ftemplate-depth-128 -O3 -finline-functions
-Wno-inline -Wall -march=i686 -mthreads -m32 -DBOOST_ALL_NO_LIB=1

...failed gcc.compile.c++

full message is posted here:

It seems like the context library of boost is not supported to compile for
windows on linux?
Is it the case?


Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at