I am Ubuntu 10.04 user and I wrote a very simple program, which I compiled with gcc:
xyz@xyz-desktop:~/xyz/projects/C\C++/epollsvr/src$ gcc -g -o test test.c
Then I loaded it with gdb:
xyz@xyz-desktop:~/xyz/projects/C\C++/epollsvr/src$ gdb test
Then I ran it:
(gdb) run
Starting program: /home/xyz/xyz/projects/C\C++/epollsvr/src/num*
/bin/bash: /home/xyz/xyz/projects/CC++/epollsvr/src/num: No such file or directory
/bin/bash: line 0: exec: /home/xyz/xyz/projects/CC++/epollsvr/src/num: cannot execute: No
such file or directory
During startup program exited with code 126.
(gdb)
Could anybody tell me why is this happening? Thanks in advance.
gdbshould beStarting program: …/test… Are you sure you're running exactly the commands you've shown here?