This is a read-only archive of lispforum.com. The forum was locked to new users and posts and is preserved here as static HTML from a database snapshot taken on 2019-09-07.

Compilation and defstruct

3 posts · 1987 views

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

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

Thanks but I solved it already. I was trying to use a constructor in a defconstant.