The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
SDL2 Android - Build with LLVM/Clang throws error
maartenengels


Joined: 09 Jun 2015
Posts: 11
Hello everyone,

I am trying to port an application on android, and major parts of the src are written in c++11 so I need to build the source with LLVM/clang instead of GCC, because GCC 4.6 which is the last supported version has a bug and doesn't support major features.

Is there a known problem with SDL2 on android and LLVM/Clang?

Is there a workaround?
EternalLands


Joined: 01 Dec 2016
Posts: 16
What error are you getting?
For me, it compiled just fine with clang for Android (I downloaded the latest ndk in October).
maartenengels


Joined: 09 Jun 2015
Posts: 11
Yeah I just tried to make it happen again to see the error and it works just fine Shocked

It was some sort of linking error, I guess the linking flag might had been wrong.