1

Hello Erlang requires -smp for using wxErlang. As I edit and compile with emacs, I modified the erlang.el file like this: (defvar inferior-erlang-machine-options '("-smp")

But this has no effect when I run the program: WX ERROR: SMP emulator required** exception error: not_smp

Do you see a syntax error or anything else ?

R. Carbone
  • 71
  • 4
Bertaud
  • 2,888
  • 5
  • 35
  • 48

1 Answers1

0

The -smp option requires an argument (enable, disable or auto). If you always want to start an SMP-enabled emulator, add the following to your ~/.emacs file:

 (add-hook 'erlang-mode-hook
     (lambda ()
         (setq inferior-erlang-machine-options '("-smp" "enable"))))
Felix Lange
  • 1,572
  • 11
  • 15