patrikhuber / superviseddescent

C++11 implementation of the supervised descent optimisation method
http://patrikhuber.github.io/superviseddescent/
Apache License 2.0
402 stars 188 forks source link

building error with VS2012 #23

Closed musicfish1973 closed 8 years ago

musicfish1973 commented 8 years ago

superviseddescent-master\include\superviseddescent/utils/ThreadPool.h(49): error C2332: “class”: 缺少标记名 superviseddescent-master\include\superviseddescent/utils/ThreadPool.h(49): error C2011: “”:“enum”类型重定义 1> D:\Microsoft Visual Studio 11.0\VC\include\thr/xthreads.h(41) : 参见“”的声明 superviseddescent-master\include\superviseddescent/utils/ThreadPool.h(49): error C2143: 语法错误 : 缺少“,”(在“...”的前面)

patrikhuber commented 8 years ago

Hi, sorry about the late reply, I didn't see the GitHub notification.

VS2012 has a really outdated compiler and is not supported. Please upgrade to 2015.

If you wanted, I'm sure you could make it work with VS2012 with minor modifications, but you'd have to do that yourself - this project uses modern C++11/14 :-)