<div dir="ltr">Wimpie,<div><br></div><div>can you please supply us with a complete, working example of code that demonstrates the problem, in particular including the defpackage forms?</div><div><br></div><div>Thanks,</div><div>Hans</div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-06-08 7:03 GMT-04:00 Wimpie Nortje <span dir="ltr"><<a href="mailto:wimpie@selectiveshare.com" target="_blank">wimpie@selectiveshare.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi everyone,<br>
<br>
I am porting my application from linux 64b to windows 32b. On windows<br>
CCL calls the wrong function while it works fine in linux.<br>
<br>
In principle the code looks like this<br>
<br>
(in-package :b)<br>
(defun fn (par1 par2 &optional (out *standard-output*))     [3]<br>
      (do-stuff))<br>
<br>
(in-package :a)<br>
(defun fn (par1 par2)                        [2]<br>
      (b:fn par1 par2 *some-global*))   [1]<br>
<br>
(in-package :main)<br>
(a:fn Val1 Val2)<br>
<br>
<br>
When I run this I get the following error:<br>
Too many arguments in call to #<Compiled-function B:FN #xE0A390E>:<br>
3 arguments provided, at most 2 accepted.<br>
   [Condition of type CCL::TOO-MANY-ARGUMENTS]<br>
<br>
It seems that the function call at [1] is calling the definition at [2]<br>
instead of the one at [3]. Also, when I do M-. (slime-edit-definition)<br>
at [1] it jumps to [2].<br>
<br>
If I rename b:fn to something else without any other code changes, it<br>
works.<br>
<br>
This code works unmodified on linux 64b. I have not yet tried on windows<br>
64b<br>
<br>
Is this a bug or am I doing something wrong?<br>
<br>
I am running CCL Version 1.10-r16196  (WindowsX8632) on Windows XP SP3.<br>
<br>
<br>
--<br>
Wimpie Nortje<br>
Strongroom - Host-proof notepad<br>
Selective Share - Encryption-as-a-Service<br>
<a href="https://www.selectiveshare.com" target="_blank">https://www.selectiveshare.com</a><br>
_______________________________________________<br>
Openmcl-devel mailing list<br>
<a href="mailto:Openmcl-devel@clozure.com">Openmcl-devel@clozure.com</a><br>
<a href="https://lists.clozure.com/mailman/listinfo/openmcl-devel" target="_blank">https://lists.clozure.com/mailman/listinfo/openmcl-devel</a><br>
</blockquote></div><br></div>