[LCP]static vs dynamic linking.

Rokicki, Andrew ARokicki at US.TIAuto.com
Tue May 6 05:23:02 UTC 2003


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.







More information about the linuxCprogramming mailing list