On Aug 30, 2010, at 5:57 PM, Steve Jaffe wrote:
It seems someone would have already come across this problem but I
just started using nlopt and found that nlopt.hpp has a number of
“bare” function definitions – ie not preceded by the “inline”
keyword. The result is that if you try to link more than one
compilation unit which includes this header you get multiply-defined-
function errors.
Steve, thanks for the bug report. You're right, this is a bug. When
I added the "srand" etc. functions at the end of the nlopt.hpp file, I
forgot to add the "inline" keyword. (Those functions at the end look
like the only ones that would cause problems, right?)
The fix will be in the next release, out in a few days I hope (now
that I am back from merry old England).
Steven
_______________________________________________
NLopt-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/nlopt-discuss