Re: Question: GDB debug C++ program in U# Unix - 噫吁兮,危乎高哉
h*g
1 楼
Yeah, I did.
I guess it might be because I used template when I declared the function.
********************
template
void myfunction(Itemtype& first, Itemtype& second);
********************
After I took off the template, gdb can find the "myfunction" when the program
is compiled by g++. But if I use CC to compile, gdb gave the same message
"Funciton myfunction not defined"
So I don't know how to make it work for template.
Also, I don't understand why CC doesn't work for this.
T