On Jul 29, 2010, at 9:52 PM, Benoit Scherrer wrote:
That's true that for the nlopt library itself there is no problem.
But in my project i was including both api/nlopt.h and util/nlopt-
util.h (to use the function nlopt_seconds)
This nlopt-util.h file includes config.h, and there were some
conflicts.
In general, one should be cautious about using undocumented internal
functions. However, if you want to do so, I would suggest copying
only the declaration of the function you want (rather than including
the whole nlopt-util.h and config.h headers). That is, paste:
extern double nlopt_seconds(void);
into your code.
_______________________________________________
NLopt-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/nlopt-discuss