In my .S file I have defined a function Test() as external symbol
using following directives
.global _Test
.extern _Test
and then after defining _Test am calling it from a .c file but I get
a linker error "undefined reference to 'Test'".
The same code works in some other platform. What is missing ?
Regards,
Pradeep
I'm pretty sure that in Linux-ARM, C symbols aren't preceded by underscores.
Tristan Miller
--
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.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.
On Dec 31 2009, 5:26 am, Tristan Miller <trisman...@gmail.com> wrote:
> I'm pretty sure that in Linux-ARM, C symbols aren't preceded by underscores.
>
> Tristan Miller
>
> On Dec 30, 2009 7:15 PM, "Pradeep" <bhatt.prad...@gmail.com> wrote:
>
> Hi,
>
> In my .S file I have defined a function Test() as external symbol
> using following directives
> .global _Test
> .extern _Test
>
> and then after defining _Test am calling it from a .c file but I get
> a linker error "undefined reference to 'Test'".
>
> The same code works in some other platform. What is missing ?
>
> Regards,
> Pradeep
>
> --
>
> 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.
> To unsubscribe from this group, send email to
> android-ndk...@googlegroups.com<android-ndk%2Bunsubscribe@googlegr oups.com>