Serge, Many thanks for your help. But with this method, the gdb still did not step into the constructor. kaiduan --- Serge Fukanchik <fuxx@xxxxxxx> wrote: > Try to compile with -O0 and -ggdb3 options: > ----- > /usr/bin/g++ -o test3 -O0 -ggdb3 test3.cpp > ----- > it is possible compiler optimized out your > constructor. > --- > Serge > > > ______________________________________________________________________ Post your free ad now! http://personals.yahoo.ca