wrote:
> Hiya all,
> I have a strange problem. I have compiled a program with g++ compiler.
> It seems to compile fine. I can even compile it with debug (-g) option.
> However at the very beginning when I run the program I get a
> segmentation fault. "Program receive SIGSEGV signal." is what I see
> when I use a debugger. I have even put a print state right in the
> beginning of the main() function. It seems that the program does not
> reach this state at all. Since the crash does not deliver any more
> information, I am stuck. Can anyone help me please with solving this
> problem by giving me some direction ?
> Many thanks in advance.
> RWJM
>
Since the OP doesn't supply any code for diagnostics I am assuming that
he has at least one static object of a type which has a constructor that
accesses invalid memory.
Regards,
Ben