From: Daniel A. S. <st...@ic...> - 2004-05-26 23:02:10
|
J=E9r=F4me, On 27/05/2004, at 6:58, J=E9r=F4me Gagnon-Voyer wrote: > I tried that with Critcl but he don't want to compile...Can someone=20 > try it or tell me why he does'nt compile? you need to make your globals static, otherwise you get common symbols=20= in the library (as the critcl::ccode section is shared between multiple=20= .o files) > critcl::ccode { > #include <Carbon/Carbon.h> > int notificationAdded =3D 0; > NMRec request; > } static int notificationAdded =3D 0; static NMRec request; this will fix it. BTW, the critcl compilation log is ~/.critcl/Darwin-ppc/*.log also while debugging, you may want to run critcl as critcl -force -keep which will ignore the cache and keep intermediate C sources in=20 ~/.critcl/Darwin-ppc Cheers, Daniel --=20 ** Daniel A. Steffen ** "And now for something completely ** Dept. of Mathematics ** different" Monty Python ** Macquarie University ** <mailto:st...@ma...> ** NSW 2109 Australia ** <http://www.maths.mq.edu.au/~steffen/> |