Hi,
I have a short file needs to compile with g++. After compilation it shows "segamentation fault". I think something wrong with my compiling options.
Here is the file:
#include <curses.h>
main()
{
int ret;
ret = beep();
}
// end file
Here is the compiler commmand line:
g++ -lncurses -o filename filename.c
After compilation, output "segametation fault". What is wrong?
I have a short file needs to compile with g++. After compilation it shows "segamentation fault". I think something wrong with my compiling options.
Here is the file:
#include <curses.h>
main()
{
int ret;
ret = beep();
}
// end file
Here is the compiler commmand line:
g++ -lncurses -o filename filename.c
After compilation, output "segametation fault". What is wrong?