A couple of suggestions. First, try linking in stages, rather than trying to get 
everything to work with one command line. Also, consider using 'ar' to break apart the 
static libs.. then list the '.o's to need on the command line.

 - jim

On Thu, 15 Jul 2004 22:01:02 -0700 (PDT)
"Christopher Baus" <[EMAIL PROTECTED]> wrote:

> Does anybody here have any experience with libtool?  I am having a
> nightmare of a time trying to statically link in a couple libraries
> (argtable2 and libxml2), and dynamically link glibc.  I have posted to a
> couple mailing lists and I am starting to think it is impossible, or at
> least very few people understand the problem.
> 
> The weird thing is if both the shared and static libraries are installed
> then libtool (and g++'s linker) always use the shared versions.  I have to
> remove the shared libraries from the link path to link statically.  Using
> g++ -static switch statically links in glibc which causes a whole other
> set of problems.  If you've ever delt with NSS you'd understand my pain.
> 
> My feeling is that nobody is statically link in libraries with gcc 3.3 and
> newer.  My feeling is this is silly for something as small as argtable. 
> Using a shared library actually has more overhead if their are few
> applications using it.
> 
> Christopher
> 
> 
> 
> _______________________________________________
> RLUG mailing list
> [EMAIL PROTECTED]
> http://lists.rlug.org/mailman/listinfo/rlug
> 

_______________________________________________
RLUG mailing list
[EMAIL PROTECTED]
http://lists.rlug.org/mailman/listinfo/rlug

Reply via email to