Hello john. I solve it by add '#include "example.h"' into wrap.c, recompiled all c-sources, and it works on the right way!
Content of example.h: ========== example.h ========= #ifndef __EXAMPLE_H__ #define __EXAMPLE_H__ double fact(double n); #endif ========== end example.h ========= Anyway, Thanks for you answer again! On 11月26日, 上午11时12分, "YunBin Lee" <[EMAIL PROTECTED]> wrote: > John, Thanks for your help! > > > Did you notice that the garbage is a whole number? Why? Because you > > have been (more or less) plucking ints out of some arbitrary place on > > the stack, floating them, and printing them.I don't know how to solve it > > (or the right way), could you give me some > examples?
-- http://mail.python.org/mailman/listinfo/python-list