nlopt icon indicating copy to clipboard operation
nlopt copied to clipboard

NLOpt 2.6.1 Windows setup

Open suhasghorp opened this issue 6 years ago • 1 comments

I am trying to setup the latest NLOpt binaries on Windows 10 (64-bit) in MSVC 2017. I downloaded the binaries that are available at https://nlopt.readthedocs.io/en/latest/NLopt_on_Windows/ The instructions are kind of vague, I know I need to include nlopt.h header file but what do I need to do with libnlopt.dll.a file? I tried adding it to my project as Additional Dependencies under Linker -> Input but got "process exited with code -1073741515" error at run-time. This leads me to believe that I somehow need to generate a .lib file from dll.a file but the NLOpt package does not include .def file. Does anyone have a suggestion? Thanks in advance.

suhasghorp avatar Jul 31 '19 16:07 suhasghorp

Right now there is an issue with the dependencies of the pre-built binaries on NLoptBuilder (see stevengj/NLoptBuilder#1), so it might be simpler to just compile NLopt yourself with MSVC using Cmake.

stevengj avatar Jul 31 '19 16:07 stevengj