Heinrich Schuchardt <xypron.glpk@...> writes: > > Hello Matt, > you have to set the executable directories to include the directory with the dll, cf.http://msdn.microsoft.com/en-us/library/ee855621.aspx > Best regards > Heinrich Schuchardthttp://www.xypron.de > > Matt Kindig <matthew.kindig- [email protected]>schrieb: > > Hi all, > I am just getting started with NLOpt, using the C interface with Windows. > I was able to successfully create the libnlopt-0.lib and libnlopt- 0.exp > files using Visual Studio (using the instructions at http://ab- > initio.mit.edu/wiki/index.php/NLopt_on_Windows). I was also able to > compile and build my application without errors. > However, when I attempt to run my executable, I get an error window "The > program can't start because libnlopt-0.dll is missing from your computer". > I am confused by this error: I have included the NLOpt directory as a > library directory in my project's configuration properties (in Visual > Studio) and have included the libnlopt-0.lib file as one of my external > dependencies). Thus, I figure that the executable should be able to find > the DLL. > Any advice you can provide would be greatly appreciated. > Regards, > Matt > _______________________________________________ > NLopt-discuss mailing list > NLopt-discuss- [email protected]http://ab- initio.mit.edu/cgi-bin/mailman/listinfo/nlopt-discuss > > > > > <div>Hello Matt,<br><br> > you have to set the executable directories to include the directory with the dll, cf.<br><a href="http://msdn.microsoft.com/en- us/library/ee855621.aspx">http://msdn.microsoft.com/en- us/library/ee855621.aspx</a><br><br> > Best regards<br><br> > Heinrich Schuchardt<br><br><a href="http://www.xypron.de">http://www.xypron.de</a><br><br><div class="gmail_quote"> > <br><br> > Matt Kindig <matthew.kindig@...>schrieb:<blockquote class="gmail_quote"> > > Hi all,<br><br> > I am just getting started with NLOpt, using the C interface with Windows.<br> > I was able to successfully create the libnlopt-0.lib and libnlopt- 0.exp<br> > files using Visual Studio (using the instructions at http://ab- <br> > initio.mit.edu/wiki/index.php/NLopt_on_Windows). I was also able to<br> > compile and build my application without errors.<br><br> > However, when I attempt to run my executable, I get an error window "The<br> > program can't start because libnlopt-0.dll is missing from your computer".<br> > I am confused by this error: I have included the NLOpt directory as a<br> > library directory in my project's configuration properties (in Visual<br> > Studio) and have included the libnlopt-0.lib file as one of my external<br> > dependencies). Thus, I figure that the executable should be able to find<br> > the DLL.<br><br> > Any advice you can provide would be greatly appreciated.<br><br> > Regards,<br> > Matt<br><br><br> > _______________________________________________<br> > NLopt-discuss mailing list<br> > NLopt-discuss@...<br><a href="http://ab-initio.mit.edu/cgi- bin/mailman/listinfo/nlopt-discuss" target="_blank">http://ab- initio.mit.edu/cgi-bin/mailman/listinfo/nlopt-discuss</a><br> > </blockquote> > </div> > </div> >
Hello Heinrich, Thanks for your reply. Unfortunately, I added the directory containing the DLL to my executable directories, as per the link you attached. I also added the directory to my Include and Library directories in the VC++ Directories for the project. I did a full rebuild of the solution, but I still have the same problem-- compiles and builds without errors, but throws the system error about missing DLL when I run it. Any assistance you can provide would be greatly appreciated. Regards, Matt _______________________________________________ NLopt-discuss mailing list [email protected] http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/nlopt-discuss
