oboe
oboe copied to clipboard
[RhythmGame - game-codelab branch] use of undeclared identifier 'assert' error
Getting the following error when trying to build the RhythmGame sample on the game-codelab
branch:
/Users/donturner/Code/workspace-android/oboe/src/flowgraph/resampler/PolyphaseResampler.cpp:26:5: error: use of undeclared identifier 'assert'
I'm having the same issue on my project. I guess after upgrading NDK.
.../workspace/oboe-1.4.3/src/flowgraph/resampler/PolyphaseResamplerMono.cpp:25:5: error: use of undeclared identifier 'assert'
.../workspace/oboe-1.4.3/src/flowgraph/resampler/PolyphaseResampler.cpp:26:5: error: use of undeclared identifier 'assert'
.../workspace/oboe-1.4.3/src/flowgraph/resampler/SincResamplerStereo.cpp:27:5: error: use of undeclared identifier 'assert'
.../workspace/oboe-1.4.3/src/flowgraph/resampler/SincResampler.cpp:25:5: error: use of undeclared identifier 'assert'
.../workspace/oboe-1.4.3/src/flowgraph/resampler/PolyphaseResamplerStereo.cpp:25:5: error: use of undeclared identifier 'assert'
Had to comment out the assert calls for code to compile.
You can include the cassert like this to resolve:
#include "cassert"
Fixed in https://github.com/google/oboe/commit/395f3d6ac25c2b069d53451b89dff4aa96d26eb8
@[email protected] do you know how to cherry-pick this one change to the game-codelab-final branch? It's already in the game-codelab branch.