PDA

View Full Version : too few arguments on compile


voigtmark
2005-10-28, 08:16 PM
below is an error message when trying to compile an autolisp and dcl file using the create application wizard thru the visual lisp editor. any help would be appreciated as i am at a loss.

; error: too few arguments in SETQ: "(setq choice1)(done_dialog)"
; error: too few arguments in SETQ: "(setq choice2)(done_dialog)"
; error: too few arguments in SETQ: "(setq choice3)(done_dialog)"
; error: too few arguments in SETQ: "(setq choice4)(done_dialog)"
; error: too few arguments in SETQ: "(setq choice5)(done_dialog)"
; error: too few arguments in SETQ: "(setq choice6)(done_dialog)"
; error: too few arguments in SETQ: "(setq choice7)(done_dialog)"
; error: too few arguments in SETQ: "(setq choice8)(done_dialog)"
; error: too few arguments in SETQ: "(setq choice9)(done_dialog)"
; error: too few arguments in SETQ: "(setq choice10)(done_dialog)"
.............
; Compilation aborted: Fatal errors found.

Opie
2005-10-28, 08:36 PM
The setq function in AutoLisp requires that you have a set of two arguments, minimum. The first argument is the variable (or symbol) name. The second argument is the value (or expression) you want assigned to the variable (or symbol).

voigtmark
2005-10-28, 08:52 PM
the program runs from the command line. how do i fix this problem?

Opie
2005-10-28, 08:54 PM
You place the correct value for each variable within each of your setq.