D on android and d_android

Adam D. Ruppe destructionator at gmail.com
Wed Apr 1 14:31:45 UTC 2020


On Wednesday, 1 April 2020 at 14:20:25 UTC, burt wrote:
> Some examples of errors are:

Those mean it isn't linking in the libs at all... ugh.

do

ldc2 -v

and it will tell you where the config file is.

open that up and see if it has teh correct paths under a section 
that looks kinda like

"armv7a-.*-linux-android":
{
     switches = [
         "-defaultlib=phobos2-ldc,druntime-ldc",
         "-link-defaultlib-shared=false",
         
"-gcc=$NDK/toolchains/llvm/prebuilt/$OS/bin/armv7a-linux-androideabi21-clang$EXT",
         "-linker=bfd",
         "-mcpu=cortex-a8",
     ];
     lib-dirs = [
         "$D_ANDROID/runtime_droid_armeabi-v7a",
     ];




That lib-dirs one in particular is what I'm interested in.


More information about the Digitalmars-d-learn mailing list