Did*_*set 5 c++ linux windows cross-compiling c++11
我创建了C++ 2011的程序实际上使用的C++ 2011的特点:mutex,unique_lock,condition_variable,future和async.
我在Debian Linux 64位盒子上测试过它,它编译并运行就像一个魅力.
现在,我想为Windows编译它.
我尝试过Visual C++ Express 2010,但它不支持C++的新功能.(Visual C++/Studio 2012测试版仅在Windows 8上运行.)
我尝试使用mingw-g ++(4.6)进行交叉编译,但看起来Windows目标不支持这些新功能.(虽然它们支持g ++ - 4.6 for Linux target).
到目前为止,是否有任何(免费?)解决方案为Windows目标编译C++ 2011程序?
小智 3
我还没有尝试过,但是项目网站上的这段引用听起来很有希望:
“构建支持以下技术:
OpenMP
LTO
Graphite
std_threads
std_atomics
Run Code Online (Sandbox Code Playgroud)
……”
http://code.google.com/p/mingw-builds/
希望这可以帮助