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.

I've confirmed that the problem can be solved by marking these functions as 
inline (which, by the way, doesn't mean they will necessarily be inlined, but 
it *does* mean that the compiler will remove redundant definitions.)

Am I missing something?

Thanks.
_______________________________________________
NLopt-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/nlopt-discuss

Reply via email to