[LC++]static vs dynamic linking.

Carlo Wood carlo at alinoe.com
Tue May 6 20:47:02 UTC 2003

On Tue, May 06, 2003 at 08:18:10AM -0400, Rokicki, Andrew wrote:
> Hello,
> 	I have been searching the web for several hours now 
> and I can't find an answer to this:
> When I link my code dynamically it works.
> something like this 
> $(TARGET) : $(OBJS)
>         $(CXX) -o $(TARGET) $(OBJS) $(LDFLAGS)
> When I add -static it I get a Segmentation Fault.
> $(TARGET) : $(OBJS)
>         $(CXX) -static  -o $(TARGET) $(OBJS) $(LDFLAGS)
> I am using RH 8.0 with gcc 3.2.
> What am I missing ? 
> Thanks for your help.

Assuming that your application crashes and not g++,
this could be any bug in your application.

For example, it could be


(and 10.10 and 10.11)

Carlo Wood <carlo at alinoe.com>

More information about the tuxCPProgramming mailing list