Hi all,
I have been trying to compile the latest version on my old Mac (snowleopard
10.6.8).
My compiler (gcc 4.7.3 in Fink) lacks "strnlen" for some obscure reason.
I finally succeeded to by adding the following code (taken from gnuplot 5.0.0)
in "elements.c":
"//from gnuplot
#ifndef HAVE_STRNLEN
size_t
strnlen(const char *str, size_t n)
{
const char * stop = (char *)memchr(str, '\0', n);
return stop ? stop - str : n;
}
#endif
//tentative"
There may be better ways ...
Regards,
Louis
------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________
Avogadro-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/avogadro-devel