Hello World works in Linux terminal but not in Emacs shell
Hello World works in Linux terminal but not in Emacs shell
I am on Ubuntu Linux 22.04 and just did a hello_world.bas (Print "Hello World!") and it compiles and I can run it in the terminal. But if I do an Emacs shell and try and run it there is nothing printed and it hangs, forcing me to hit Ctrl-C ?? I am able to run a C hello-world program and see the output in the Emacs shell.
Re: Hello World works in Linux terminal but not in Emacs shell
Searching the forums, the only thing I could find regarding Emacs was this: https://www.freebasic.net/forum/viewtopic.php?p=290979
I don't know it that helps or not.
I don't know it that helps or not.
Re: Hello World works in Linux terminal but not in Emacs shell
Does this example work?
https://github.com/freebasic/fbc/blob/1 ... scapes.bas
Because your issue seems similar to this one: https://www.freebasic.net/forum/viewtopic.php?t=25124
https://github.com/freebasic/fbc/blob/1 ... scapes.bas
Because your issue seems similar to this one: https://www.freebasic.net/forum/viewtopic.php?t=25124
Re: Hello World works in Linux terminal but not in Emacs shell
I think you are doing it with "M-x Compile" (i.e Pressing Alt+X and then writing Compile).
An easier way to do it, while avoiding complications of Emacs, is to open a "Elisp shell" or "Bash shell" by writing "M-x eshell" or "M-x shell"
and then compile your file in the usual way you do in Terminal:
An easier way to do it, while avoiding complications of Emacs, is to open a "Elisp shell" or "Bash shell" by writing "M-x eshell" or "M-x shell"
and then compile your file in the usual way you do in Terminal:
Code: Select all
$ fbc MyProgram.bas
$ ./MyProgram
> Hello world