<div dir="ltr">Confirming that fixed it. At least on my setup. <div><br></div><div>Thanks!</div><div>iain</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, May 9, 2020 at 2:02 PM <<a href="mailto:bil@ccrma.stanford.edu">bil@ccrma.stanford.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">> compiling S7 throws errors for lines 11121 to 11125:<br>
> Error C2491 'asinh': definition of dllimport function not allowed<br>
<br>
I misunderstood something Rick sent me -- in s7.c at line 11119<br>
enclose the asinh etc in (_MSC_VER < 1700)<br>
<br>
#if (_MSC_VER < 1700)<br>
/* in MS C, we need to provide inverse hyperbolic trig funcs and cbrt <br>
*/<br>
static double asinh(double x) {return(log(x + sqrt(1.0 + x * x)));}<br>
static double acosh(double x) {return(log(x + sqrt(x * x - 1.0)));}<br>
/* perhaps less prone to numerical troubles (untested): 2.0 * <br>
log(sqrt(0.5 * (x + 1.0)) + sqrt(0.5 * (x - 1.0))) */<br>
static double atanh(double x) {return(log((1.0 + x) / (1.0 - x)) / <br>
2.0);}<br>
static double cbrt(double x) {if (x >= 0.0) return(pow(x, 1.0 / 3.0)); <br>
return(-pow(-x, 1.0 / 3.0));}<br>
#endif<br>
<br>
I'm guessing about the 1700.<br>
<br>
<br>
</blockquote></div>