bx icon indicating copy to clipboard operation
bx copied to clipboard

invalid reference to stdin/stdout on android

Open jimon opened this issue 6 years ago • 2 comments

bgfx/bx builds normally for latest android ndk (16.1 at this time). But generated bx library is unusable because of invalid references to stdin/stdout:

  ../../../../bx/src/file.cpp:0: error: undefined reference to 'stdout'
  ../../../../bx/src/file.cpp:0: error: undefined reference to 'stdout'
  ../../../../bx/src/file.cpp:0: error: undefined reference to 'stderr'

jimon avatar Dec 17 '17 16:12 jimon

I have no issue building with NDK-r13b.

bkaradzic avatar Jan 03 '18 08:01 bkaradzic

Yes it was fine in older versions, but they removed stdout\stderr in never ones (they still were pointed to /dev/null). For my local fix I replaced FileWriter with a no-op one (like you have with FileReaderImpl). If you agree it's a good idea - I can make a PR 👍

jimon avatar Jan 03 '18 09:01 jimon