pea
developer
Hi all,
When I am compiling a lib, and it references functions from another lib (e.g. The ringbuffer or smc functions from Mr.Mirkos SDK lib), does it compile the functions that it accesses from Mr.Mirkos lib directly in to the code?
If so, how do I stop this?
e.g.
Lib A has a function:
Lib B has a function:
How do I get lib B to compile without actually compiling the code for lib A's function in to it? Just having a reference to the function.
This means that the person who uses lib B will also need lib A, but it also means that lib A can be updated, and lib B doesn't need to be recompiled, as long as the prototypes are the same.
When I am compiling a lib, and it references functions from another lib (e.g. The ringbuffer or smc functions from Mr.Mirkos SDK lib), does it compile the functions that it accesses from Mr.Mirkos lib directly in to the code?
If so, how do I stop this?
e.g.
Lib A has a function:
Code:
int do_something(){
return 5*4-3+2;
}
Lib B has a function:
Code:
do_anotherthing(){
int a;
a = do_something();
}
How do I get lib B to compile without actually compiling the code for lib A's function in to it? Just having a reference to the function.
This means that the person who uses lib B will also need lib A, but it also means that lib A can be updated, and lib B doesn't need to be recompiled, as long as the prototypes are the same.