Compilation and defstruct

Discussion of Common Lisp

Compilation and defstruct

Postby 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.
Ferreira
 
Posts: 5
Joined: Thu Apr 02, 2009 5:07 am

Re: Compilation and defstruct

Postby 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.
gugamilare
 
Posts: 406
Joined: Sat Mar 07, 2009 6:17 pm
Location: Brazil

Re: Compilation and defstruct

Postby Ferreira » Thu Apr 02, 2009 1:32 pm

Thanks but I solved it already. I was trying to use a constructor in a defconstant.
Ferreira
 
Posts: 5
Joined: Thu Apr 02, 2009 5:07 am


Return to Common Lisp

Who is online

Users browsing this forum: No registered users and 4 guests