[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Linking static lib into shared lib
From: |
Paul Pluzhnikov |
Subject: |
Re: Linking static lib into shared lib |
Date: |
Sat, 09 Jul 2005 08:17:29 -0700 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Jumbo Shrimp, linux) |
roman schindlauer <romans@despammed.com> writes:
> This results in the following error:
> /usr/lib64/gcc-lib/x86_64-suse-linux/3.3.4/../../../../x86_64-suse-linux/bin/ld:
> ./libraptor.a(raptor_parse.o): relocation R_X86_64_32S against `a
> local symbol' can not be used when making a shared object; recompile with
> -fPIC
The linker told you what you must do: recompile all objects in
libraptor.a with -fPIC.
> (What does -shared actually mean: that it PRODUCES a shared lib or
Yes.
> that the linker should LINK dynamically to the specified libs?
No. That's '-dynamic' (linker default).
> Then, what is -static?)
That the linker should produce a statically-linked executable.
The '-static' is antonym to '-dynamic'.
Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.