[LC++]static vs dynamic linking.
Rokicki, Andrew
ARokicki at US.TIAuto.com
Wed May 7 00:45:24 UTC 2003
I need to look into this some more.
It seems that libraries I wrote and linking are giving me hard time.
On Tuesday, May 06, 2003 8:46 AM, Carlo Wood [SMTP:carlo at alinoe.com] wrote:
> 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
>
> http://users.utu.fi/~sisasa/oasis/cppfaq/ctors.html#[10.9]
>
> (and 10.10 and 10.11)
>
> --
> Carlo Wood <carlo at alinoe.com>
> _______________________________________________
> This is the Linux C++ Programming List
> : http://lists.linux.org.au/listinfo/tuxcpprogramming List
More information about the tuxCPProgramming
mailing list