initializing packages while running lw from command prompt
how do i run functions from the multiprocessing package from command prompt? if this is the code: ;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (load-all-patches) (defun test-process () (dotimes (x (* 10000 (1+ (random 10)))) (setq i x)) (format t "~a" i) ) (defun main () (dotimes (x 1000) (mp:process-run-function "test-process" '() 'test-process))) (main) (quit) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; and i compile it, and then run it from command prompt (OS X, lw 4.4.5): /Applications/LispWorks\ 4.4.5/LispWorks.app/Contents/MacOS/ lispworks-4-4-5-darwin -init test.nfasl it gives me this error: Error: Cannot create processes before multiprocessing is initialized. ***************************** this is what is looks like: /Applications/LispWorks\ 4.4.5/LispWorks.app/Contents/MacOS/ lispworks-4-4-5-darwin -multiprocessing -init test.nfasl LispWorks(R): The Common Lisp Programming Environment Copyright (C) 1987-2005 LispWorks Ltd. All rights reserved. Version 4.4.5 Saved by LispWorks as lispworks-4-4-5-darwin, at 11 Apr 2005 19:58 User danv on vdv.local ; Loading text file /Applications/LispWorks 4.4.5/Library/lib/4-4-0-0/ config/siteinit.lisp ; Loading text file /Applications/LispWorks 4.4.5/Library/lib/ 4-4-0-0/private-patches/load.lisp ; Loading fasl file /Users/danv/ vdv/lisp/test.nfasl ; Loading text file /Applications/LispWorks 4.4.5/Library/lib/ 4-4-0-0/private-patches/load.lisp Error: Cannot create processes before multiprocessing is initialized. 1 (continue) Try loading /Users/danv/ vdv/lisp/test.nfasl again. 2 Give up loading /Users/danv/ vdv/lisp/test.nfasl. 3 Try loading another file instead of /Users/danv/ vdv/lisp/ test.nfasl. 4 (abort) Abort initialization. Type :b for backtrace, :c <option number> to proceed, or :? for other options MP 1 : 1 >