I would like to build and run unit tests for Native C code on Android platform using Check Unit Test Framework (version 0.19.4 for now).
I use CMake, so I wrote special toolchain file and tried to build. My application builds successful but test application has next link error:
Linking C executable app-test-suite
../thirdparty/check-0.9.14/src/check_run.c:514: error: undefined reference to 'WIFSIGNALED'
../thirdparty/check-0.9.14/src/check_run.c:515: error: undefined reference to 'WIFEXITED'
../thirdparty/check-0.9.14/src/check_run.c:516: error: undefined reference to 'WEXITSTATUS'
../thirdparty/check-0.9.14/src/check_run.c:517: error: undefined reference to 'WTERMSIG'
../thirdparty/check-0.9.14/src/check_run.c:659: error: undefined reference to 'WIFSIGNALED'
../thirdparty/check-0.9.14/src/check_run.c:660: error: undefined reference to 'WIFEXITED'
../thirdparty/check-0.9.14/src/check_run.c:661: error: undefined reference to 'WEXITSTATUS'
../thirdparty/check-0.9.14/src/check_run.c:662: error: undefined reference to 'WTERMSIG'
collect2: error: ld returned 1 exit status
I tried various compilers from Android NDK and different platform versions - error was the same. Can somebody help me?
Aucun commentaire:
Enregistrer un commentaire