Closed TDanielI closed 2 years ago
Hi @TDanielI,
The test files don't have a main()
function to run, they contain test functions to be called inside the original main.cpp
file.
What syntax should I use to call those functions?
Only a few take arguments: https://github.com/lancaster-university/microbit-v2-samples/blob/master/source/samples/Tests.h
You need to include that header file and then call the functions.
Hi @TDanielI, were you able to get this working?
I'll close this due to lack of activity, but if you are still experiencing this problem please free feel to reopen this issue! 👍
After encountering problems in windows os, i tried to compile files in ubuntu linux instead and i managed to successfully compiled the main.cpp file (the hello world program). I tried to move the sample file out from the source file and copied the BlinkyTest.cpp and Test.h to the source file alone and tried to redo the same process. I got this error:
Did I do any wrong steps on this or how can I use the compiler properly?