Sean Boudreau(deleted)
|
Re: Linking libmy.a with sample driver
|
Sean Boudreau(deleted)
10/21/2009 9:00 AM
post40413
|
Re: Linking libmy.a with sample driver
On Wed, Oct 21, 2009 at 01:04:18AM -0400, Senthil K wrote:
> Hi,
>
> I have a library file in .a format which contains my own functions.I copied the library file in /usr/lib.
>
> Change the makefile in the sample ethernet driver.I called my library function in sample ethernet driver and compiled.
>
> Compilation successful.but i try to load the .so it throws symbol not found error.
>
> Can you please tell me how to link my own libmy.a with devnp-sam.so file.
You're going to want a PIC version of that lib. In
our nomenclature that would be libmyS.a (a.shared
variant).
If you're using our Makefile structure you'd add:
LIBS+=myS
If not using our Makefiles you'll have to figure
out you're specific knob / compile flag, eg:
# qcc ... -L /tmp -l myS
-seanb
|
|
|