Problem
I have compiled all the modules of my program with cc(CP)
or icc(CP) using the "-g" flag. When I try to debug the
program using sdb(CP), I get this error:$ sdb <program>
Warning: `<function>' not found
*where <program> is my program name and <function> is a function in the program.
If I continue to try to debug the program, this and other functions and/or symbols in the program can't be found.
In general, I may see this and other problems referencing symbols, when using sdb(CP) (for example, when setting a breakpoint) on COFF format code compiled with these compilers.
Cause
The debug COFF binary format generated by cc(CP) and icc(CP) can't be debugged using sdb(CP).
Solution
To work around this problem:1. Use dbxtra(CP) as an alternative to sdb(CP)OR:2. Install the SCO XENIX/DOS Cross Development Supplement Release 5.0.0 on the system; use xcc(CP) to compile your code. The debug COFF binary generated by xcc(CP) can be successfully debugged using sdb(CP).
See also
sdb(CP), dbx(CP), dbxtra(CP)