I have tried to compile and debug a pure-C console application using ncurses library (Linux Ubuntu 8.04 plattform).
There is no problem with BUILD and RUN commands; the application works; but I can't debug it.
When I try to start debugging, the console window is opened and I see a message "Error opening terminal: unknown" on it; the console window closes.
In Debugger logging window I see:
Building to ensure sources are up-to-date
Build succeeded
Selecting target:
Debug
Adding source dir: /home/user/CB/ncurses1/
Adding source dir: /home/user/CB/ncurses1/
Adding file: bin/Debug/ncurses1
Starting debugger:
done
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
Debugger name and version: GNU gdb 6.8-debian
At /home/user/CB/ncurses1/main.c:55
Continuing...
Program exited with code 01.
Debugger finished with status 0
Note: main.c:55 contains a first call of a ncurses-library routine:
init_ncurses(); /* Start curses mode */
Is it known how to debug such project with ncurses library?
Thanks!
Ubuntu 8.04
Code::Blocks 8.02, Build: Feb 27 2008, 21:58:34 - wx2.8.7 (Linux, unicode)