I want to build a program from the source file on C. To do this, perform in the console
bash$ gcc hello.c -o hello result
'bash$' is not recognized as an internal or external command,... What am I doing wrong?
I want to build a program from the source file on C. To do this, perform in the console
bash$ gcc hello.c -o hello result
'bash$' is not recognized as an internal or external command,... What am I doing wrong?
It seems that this question does not correspond to the subject of the site. Those who voted to close it indicated the following reason:
Surely you took it from some tutorial. Usually bash$ added just as an example of a command line prompt. The very same command is gcc hello.c -o hello , and that’s what you need to write.
\bin inside it to the PATH variable. - Alex Chermeningcc hello.c -o hello compile a file for you. And to run it, you need to make it executable chmod +x hello and then run ./hello
Source: https://ru.stackoverflow.com/questions/571876/
All Articles
.exeif it is windows) for execution. - zed