Does adding -pthread as a compiler option work as well? The mingw packages I'm using on my Arch Linux don't have the -posix binaries. It does ship with mingw-gcc version 7.2 though.
Since this is only used in very few places I might just rewrite the code without using optional.
You're right, added that to the README.
will try if -pthread fixes it..
doesn't help..
tested with "-pthread','-lpthread'" everywhere..
[properties]
c_args = ['-Og', '-ggdb','-pthread','-lpthread']
c_link_args = ['-static', '-static-libgcc','-pthread','-lpthread']
cpp_args = ['-std=c++17', '-Og', '-gstabs','-pthread','-lpthread']
cpp_link_args = ['-static', '-static-libgcc', '-static-libstdc++','-pthread','-lpthread']
and still get
"error: ‘mutex’ in namespace ‘std’ does not name a type"
Check https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=757259 to see how to switch to pthread
thanks @bog-dan-ro ..
I now switched to Ubuntu 18.04dev with mingw gcc 7.2 by default and with
update-alternatives --config x86_64-w64-mingw32-gcc
update-alternatives --config x86_64-w64-mingw32-g++
to posix variants it works with no code changes!
so closing it..
Just a note - On Kali additionally to oscarbg change required on ubuntu with x86_64-w64-mingw32-gcc/g++ you also need switching wingw to posix for environment targeting Win32:
update-alternatives --config i686-w64-mingw32-gcc
update-alternatives --config i686-w64-mingw32-g++
Nothing extracted yet.
Hi,
nice project..
just testing and it fails on Ubuntu 17.10..
some notes:
have to change build-win64.txt file to using gcc and g++ posix variants:
c = '/usr/bin/x86_64-w64-mingw32-gcc-posix'
cpp = '/usr/bin/x86_64-w64-mingw32-g++-posix'
if not have issues with std::mutex not defined etc.. seems related to thread support varying between posix and win32 modes..
Ubuntu 17.10 seems it includes mingw g++ version 6.2 so optional header isn't avaiable have to change to:
#include <experimental/optional>
also std::experimental::optional..
you should point to use Wine staging for Vulkan support..