Question

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 ?

Was it helpful?

Solution

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"))))
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top