Page 1 of 1

Compilation and defstruct

Posted: Thu Apr 02, 2009 5:14 am
by Ferreira
I have defined a structure using defstruct. The problem is, my code runs fine when interpreted but when I try to compile it I get an error saying that "make-state" is an undefined function. Is there anything I should do in order to compile my code that isn't required when it is being interpreted? I'm running Allegro CL is Mac OS X, if that matters.

Thanks in advance.

Re: Compilation and defstruct

Posted: Thu Apr 02, 2009 1:05 pm
by gugamilare
I don't think there should be a difference in interpreting or compiling the code, it can be a bug. It would be a good thing if you posted the problematic code, or tested it in other implementations.

Re: Compilation and defstruct

Posted: Thu Apr 02, 2009 1:32 pm
by Ferreira
Thanks but I solved it already. I was trying to use a constructor in a defconstant.