<div dir="ltr">Hi list, I&#39;m trying to build S7 with MSVC 2019, and hitting some snags. I would like to get it working on MSVC because the Max SDK targets that compiler and it seems like it will be a real bear to get Max externals building on gcc on windows. If anyone has insights into the issues and can tell me what the right thing to do is, that would be lovely<div><br></div><div>Issues I&#39;m stuck on right now, below.</div><div>Thanks!</div><div>iain</div><div><br></div><div>error C:2065 &#39;F_OK&#39;: undeclared identifier (line 26134)<br></div><div>if (access(filename, F_OK) == 0)<br>      return(b);<br></div><div>- so F_OK is not being recognized, not sure what to do with this, it&#39;s used in two places</div><div><br></div><div>error line: 39815 C2100: illegal indirection<br></div><div>#if MS_WINDOWS<br>    struct sort_r_data tmp = {arg, compar};<br>    qsort_s(*base, nmemb, size, &amp;sort_r_arg_swap, &amp;tmp);<br>  #else<br></div><div>- I assume it&#39;s qsort call as it looks different from the neighboring ones:</div><div><br></div><div>void local_qsort_r(void *base, size_t nmemb, size_t size, int (*compar)(const void *, const void *, void *), void *arg)<br>{<br>#if defined(__linux__)<br>  qsort_r(base, nmemb, size, compar, arg);<br>#else<br>#if defined(__APPLE__) || defined(__FreeBSD__) /* not in OpenBSD or NetBSD as far as I can tell */<br>  struct sort_r_data tmp = {arg, compar};<br>  qsort_r(base, nmemb, size, &amp;tmp, &amp;sort_r_arg_swap);<br>#else<br>#if MS_WINDOWS<br>  struct sort_r_data tmp = {arg, compar};<br>  qsort_s(*base, nmemb, size, &amp;sort_r_arg_swap, &amp;tmp);<br>#else<br></div></div>