Do you have a speaker connected to the motherboard?
Yes, I'm on my notebook.
@Peter87
You might have to run your program as root.
I can't run it because it isn't compiling yet.
1 2 3 4
~/bin/cpp/test$ g++ -Wall -std=c++14 -o test test.cpp
/tmp/cctC4yjf.o: In function `main':
test.cpp:(.text+0x2e): undefined reference to `beep'
collect2: error: ld returned 1 exit status
Yes, I had read about that, but it didn't work for me.
1 2 3 4
~/bin/cpp/test$ sudo g++ -Wall -std=c++14 -lncurses -o test test.cpp
/tmp/cc6fxOvj.o: In function `main':
test.cpp:(.text+0x2e): undefined reference to `beep'
collect2: error: ld returned 1 exit status
In the future, instead of saying "doesn't work", state a more precise nature of the problem. For example, "it doesn't compile", "it crashes", "it hangs", "it runs, but the output is wrong", etc.
In the future, instead of saying "doesn't work", state a more precise nature of the problem.
I'm sorry. I don't speak english, therefore it isn't easy to explain for me. Also, I'm a beginner, not always I know what is going on. I pasted the compiler command and message, I thougth that it was suficient. In a previous post I talked that it did not was compiling as well.