Re: static linking

David Daney <[email protected]>
Newsgroups gmane.comp.gcc.java.devel
Message-ID <[email protected]>
> 
> /scratch/daniel> gdb HelloWorld
> GNU gdb 6.3
> Copyright 2004 Free Software Foundation, Inc.
> ...
> 
> (gdb) break 12
> Breakpoint 1 at 0x400324: file /tmp/cc0TNqNE.i, line 12.
> (gdb) run
> Starting program: /scratch/daniel/HelloWorld
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x0000000000000000 in ?? ()

Make sure you compile with -g and get a backtrace using gdb's bt command.

David Daney
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.