<div dir="ltr"><div>It's because on Windows the default calling convention is stdcall and the number of arguments of each function (or rather, bytes of stack space need) is appended to its name when compiling (eg _EMBEDTEXT@8). So a mismatch in the number of arguments is noticed by the linker.</div><div><br></div><div>This is exactly why we shouldn't duplicate function declarations. Instead, include the correct header, guarded by an #ifdef. <br></div><div class="gmail_extra"><br><div class="gmail_quote">On 23 September 2017 at 10:46,  <span dir="ltr"><<a href="mailto:subversion@hamsterrepublic.com" target="_blank">subversion@hamsterrepublic.<wbr>com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">james<br>
2017-09-22 15:46:05 -0700 (Fri, 22 Sep 2017)<br>
198<br>
Update the game-only DECLARE SUB embedtext in menus.bas to match the new function signature<br>
This was breaking builds on Windows, and I have no idea why it was not breaking builds on other platforms<br>
---<br>
U   wip/menus.bas<br>
______________________________<wbr>_________________<br>
Ohrrpgce mailing list<br>
<a href="mailto:ohrrpgce@lists.motherhamster.org" target="_blank">ohrrpgce@lists.motherhamster.o<wbr>rg</a><br>
<a href="http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org" rel="noreferrer" target="_blank">http://lists.motherhamster.org<wbr>/listinfo.cgi/ohrrpgce-motherh<wbr>amster.org</a><br>
</blockquote></div><br></div></div>