link problem - shared library uses a global variable

Put problems with the Android NDK in this forum.

link problem - shared library uses a global variable

Postby jeromezhr » Thu Aug 25, 2011 5:58 am

My main program has a global which will be refered by a shared library. And the main program needs to link with the shared library. On linux, I could just refer to this global variable directly in the shared lib. But on Android I got a link error. How to solve this problem?
jeromezhr
Once Poster
Once Poster
 
Posts: 1
Joined: Thu Aug 25, 2011 5:57 am

Top

Return to NDK Problems

Who is online

Users browsing this forum: No registered users and 3 guests