On 12-Jan-15 11:47, Andrey Anpilogov wrote:
> > "those symbols are marked as "weak" but still exist in a static
> library, right?"
> They do. But they will not be linked because of priority.
> So I have program.c with:
> void "weak" foo() {};
>
> and target.c:
> void foo() {do_something();}
>
> If
> "those symbols are marked as "weak" but still exist in a static library,
right?"
They do. But they will not be linked because of priority.
So I have program.c with:
void "weak" foo() {};
and target.c:
void foo() {do_something();}
If I link them together into static library and link with ELF fil
On 12-Jan-15 04:44, Andrey Anpilogov wrote:
> One of the things I have no idea how to do is "weak" function in static
> library.
> I have one static library that builds as Product. It has couple files
> with "weak" functions:
> files:
> - somelib.cpp
> - extracool.cpp
> - base.c
> - weakfuncs.c
>
Hi,
One of the things I have no idea how to do is "weak" function in static
library.
I have one static library that builds as Product. It has couple files with
"weak" functions:
files:
- somelib.cpp
- extracool.cpp
- base.c
- weakfuncs.c
Let's say base.c and wealfuncs.c have "weak" functions.
Whi