Discussion:
[Boost-users] context library of boost: compiling for windows 32 on ubuntu 64
Jack Kumba
2017-01-27 17:29:38 UTC
Permalink
Hello,

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
-DBOOST_CONTEXT_SOURCE -DBOOST_DISABLE_ASSERTS -DNDEBUG -I"." -c -o
"bin.v2/libs/context/build/gcc-mingw-5.3.1/release/binary-format-pe/build-no/link-static/target-os-windows/threading-multi/unsupported.o"
"libs/context/src/unsupported.cpp"

...failed gcc.compile.c++
bin.v2/libs/context/build/gcc-mingw-5.3.1/release/binary-format-pe/build-no/link-static/target-os-windows/threading-multi/unsupported.o...

full message is posted here: https://thepasteb.in/p/y8hzcR93o3XO7t2

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

Thanks,
Aja
Oliver Kowalke
2017-01-27 21:43:29 UTC
Permalink
might require abi=ms too
Jack Kumba
2017-02-03 08:41:00 UTC
Permalink
hi,

thanks but can I ask what does it mean abi=ms?

jack
Post by Oliver Kowalke
might require abi=ms too
_______________________________________________
Boost-users mailing list
http://lists.boost.org/mailman/listinfo.cgi/boost-users
Jack Kumba
2017-02-03 10:54:24 UTC
Permalink
Hi,

Can you please give me a simple demo test example that uses boost context
library?
This is just for testing purposes.

Thanks,
Jack
Post by Jack Kumba
hi,
thanks but can I ask what does it mean abi=ms?
jack
Post by Oliver Kowalke
might require abi=ms too
_______________________________________________
Boost-users mailing list
http://lists.boost.org/mailman/listinfo.cgi/boost-users
Nat Goodspeed
2017-02-04 21:13:17 UTC
Permalink
Can you please give me a simple demo test example that uses boost context library?
This is just for testing purposes.
https://github.com/boostorg/context/tree/develop/example

Pick whether you're using execution_context v1, execution_context v2
or the new callcc API.

Loading...