[Kst] RE: error message

George Staikos staikos at kde.org
Fri Mar 18 20:03:08 CET 2005

On Friday 18 March 2005 10:48, Brisset, Nicolas wrote:
> >   Correct.  The problem, however, is not finding the library,
> > but actually loading it.  Using a non-PIC library linked to
> > the PIC code in Kst is technically against the rules, but
> > just happens to work by coincidence on x86 Linux.  On my
> > powerbook, for instance, it would crash.
> So, you mean linking to a non-PIC .a library is not a good idea ?

   In Kst, correct, we should not link to non-PIC .a files.  It will break, 
for sure, on some platforms.

> By the 
> way, is it also wrong to create a .a lib from files compiled with -fPIC
> ?

   No.  We do that in Kst even.  Kst compiles several helper libraries 
initially, which are .a library (static) with PIC code.

George Staikos
KDE Developer				http://www.kde.org/
Staikos Computing Services Inc.		http://www.staikos.net/

More information about the Kst mailing list