static library problem

3 views
Skip to first unread message

fala70

unread,
Nov 6, 2009, 4:10:52 PM11/6/09
to android-ndk
Hi, I am trying to use a static library builded from android platform
and use in my app.
The library has classes and global functions. I can declare the
objects of classes presents into the lib, compile and link without
problem. When I try to use global functions of lib the linker doesn't
found the reference.

any idea ?

thanks

David Turner

unread,
Nov 6, 2009, 5:44:44 PM11/6/09
to andro...@googlegroups.com
Do you have any error message you could show here ?
What steps are you following to generate the library ?


--

You received this message because you are subscribed to the Google Groups "android-ndk" group.
To post to this group, send email to andro...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.



fala70

unread,
Nov 6, 2009, 6:30:17 PM11/6/09
to android-ndk
the errors are simply "undefined references to.." the library is
generated from sapphire google platform here
http://source.android.com/documentation/building-for-dream.
looking the code of library the functions have the prefix
__attribute__ ((visibility("default")))

fala70

unread,
Nov 8, 2009, 3:53:21 AM11/8/09
to android-ndk
Any idea ?

On 7 Nov, 00:30, fala70 <fal...@gmail.com> wrote:
> the errors are simply "undefined references to.." the library is
> generated from sapphire google platform herehttp://source.android.com/documentation/building-for-dream.

fala70

unread,
Nov 8, 2009, 3:55:14 AM11/8/09
to android-ndk
Can I link a static library builded from android platform, target
sapphire, on NDK ?


On 6 Nov, 23:44, David Turner <di...@android.com> wrote:
Reply all
Reply to author
Forward
0 new messages