m****r 发帖数: 59 | 1 After compiling, I ran the program. Linux gave me this error
message and nothing else.
When I use debugger to debug, entering some function ( I
guess that contains some mistakes), the message is :
__eq__H3ZcZt18string_char_traits1ZcZt24__default_alloc_templ
ate2b1i0_RCt12basic_string3ZX01ZX11ZX21PCX01_b
(lhs=@0xbffff75c, rhs=0x804f801 "") at
../../../libstdc++/std/straits.h:125
Does this mean something wrong with standard lib file? Or I
used them wrong? Or, something else???
Please tell me why, | c*****t 发帖数: 1879 | 2 It' likely that the way you used the standard lib functions
wrong. For example, you tried to pass a NULL pointer to
a function which assume that is not.
You need to step through the program, or insert breaks
at various points to figure out the exact location of
erroraneous use of the lib function.
【在 m****r 的大作中提到】 : After compiling, I ran the program. Linux gave me this error : message and nothing else. : When I use debugger to debug, entering some function ( I : guess that contains some mistakes), the message is : : __eq__H3ZcZt18string_char_traits1ZcZt24__default_alloc_templ : ate2b1i0_RCt12basic_string3ZX01ZX11ZX21PCX01_b : (lhs=@0xbffff75c, rhs=0x804f801 "") at : ../../../libstdc++/std/straits.h:125 : Does this mean something wrong with standard lib file? Or I : used them wrong? Or, something else???
| h******a 发帖数: 198 | 3 in gdb, when core dump, use where command to see the
stack
【在 c*****t 的大作中提到】 : It' likely that the way you used the standard lib functions : wrong. For example, you tried to pass a NULL pointer to : a function which assume that is not. : You need to step through the program, or insert breaks : at various points to figure out the exact location of : erroraneous use of the lib function.
|
|