If you are doing this as part of an SDK project using the NDK, please try the [android-ndk] Google Group, which is dedicated to NDK questions.
On Mon, May 23, 2011 at 4:49 PM, Richard Deurwaarder <[email protected]> wrote: > Hello, > > I'm porting a native engine written in FreePascal. > > I've got my crosscompiler up and running and it's compiles simple > hello world programs. However when i attempt to ccompile the engine it > gives me linking errors > > > /usr/local/bin/arm-linux-ld: cannot find -ldl > /usr/local/bin/arm-linux-ld: cannot find -lpthread > /usr/local/bin/arm-linux-ld: cannot find -lc > hwLibrary.pas(33) Error: Error while linking > hwLibrary.pas(33) Fatal: There were 1 errors compiling module, > stopping > Fatal: Compilation aborted > > > Now i know that the pthread is implemented differently, being > implemented directly into bionic. However how do i link it correctly? > I've tried using these linker options: --whole-archive -lpthread but > it just gives me the same error. How can i fix this? > > Also what about the -ldl and -lc? What kind of libraries are these? > and what should i link them to? > > Thanks in advance for any help, > > Richard > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.6 Available! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

