Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
NLopt 2.4.1 won't build on MS Windows / Visual Studio #12
I just want to report my findings on how to compile latest NLopt on MS Windows / Visual Studio (2008).
At first, esch/esch.c and esch/esch.h have to be added to CMakeLists.txt
Then, M_PI has to be included in esch.c somehow - either via
or simply via
define M_PI 3.14159265358979323846
Finally, MS C compiler does not like "(void) unused;" in esch.c, line 62 - it can be simply commented out to make it work.
It's a fully fledged error:
Visual Studio is non-standard sometimes ;)