[JDEV] Re: problems linking in common symbols

Michael D. Johnson mike_johnson at credence.com
Wed Dec 29 10:43:55 CST 1999


Fengqiang;
there are 2 ways I know of to do this.  1. you give each *.o file on the
final build to the gcc command line which links all the symbols in  and
2. you copy all the *.o files to a known directory and use LD and AR to
build a new library from the command line.  Then you double check the
library with NM. Finally passing the new library to the gcc command line
on the final build.

But I will warn you, this does not always cure the problem.  Sometimes
you are chasing a circular reference particular only to the OS you are
working on.  Like I am.  Then you break down and haul out the debugger
and step through it.

Mike


fengqiang wrote:
> 
> I have absolutely no idea why that would not link in.  My only suggestion
> would
> be to try and link by hand.  libcommon is absolutely
>               ~~~~~~~~~~~~~
>               How to do this?
> 
> required, so it has to get
> in some way.
> 
> --temas
> 
> Michael D. Johnson [mike_johnson at credence.com] wrote:
> >
> > I seem to be having a problem with the jserver source not linking in any
> > symbols from the libcommon.la section of Jlib.  Does anyone have a
> > suggested work around for this???
> > Thank You
> > Mike
> >
> > _______________________________________________
> > jdev mailing list
> > jdev at jabber.org
> > http://mailman.jabber.org/listinfo/jdev
> >
> 
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mailman.jabber.org/listinfo/jdev




More information about the JDev mailing list