Compilation and defstruct

Discussion of Common Lisp
Post Reply
Ferreira
Posts: 5
Joined: Thu Apr 02, 2009 5:07 am

Compilation and defstruct

Post by Ferreira » Thu Apr 02, 2009 5:14 am

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.

gugamilare
Posts: 406
Joined: Sat Mar 07, 2009 6:17 pm
Location: Brazil
Contact:

Re: Compilation and defstruct

Post by gugamilare » Thu Apr 02, 2009 1:05 pm

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.

Ferreira
Posts: 5
Joined: Thu Apr 02, 2009 5:07 am

Re: Compilation and defstruct

Post by Ferreira » Thu Apr 02, 2009 1:32 pm

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

Post Reply