static vs dynamic linking.
"Rokicki, Andrew" <[email protected]>
| Newsgroups | gmane.linux.redhat.devel |
|---|---|
| Message-ID | <0329184E605BD41197DF0008C7335BF5F908D3@tiasusmrddc00.mrd.us.tiautomotive.com> |
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.