Yes, I have 3.1.6 installed and it breaks because GetBitmapFor() is actually a member of wxBitmapBundle, not wxBitmap. So, the usage is incorrect.
For the time begin, I just replace
#if wxCHECK_VERSION(3, 1, 6)
with
#if (0)
to disable this code. It compiles and appears to run ... though it crashed when I closed the app.