Hello
After 2 years I happy to start my hobby again.
I try to fiddle with ArduinoFake this wonderful Project to debug
I tried the example from Github and get the Error
Linking .pio\build\native\program.exe
c:/mingw/bin/…/lib/gcc/mingw32/8.2.0/…/…/…/…/mingw32/bin/ld.exe: c:/mingw/bin/…/lib/gcc/mingw32/8.2.0/…/…/…/libmingw32.a(main.o):(.text.startup+0xc0): undefined reference to `WinMain@16’
collect2.exe: error: ld returned 1 exit status
*** [.pio\build\native\program.exe] Error 1
and I wonder where is unity.h
The main.cpp file of the arduino-mock example is not meant to be compilable for platform = native, since it does not define a main() function.
The example only shows how to compile the tests for the native platform, not how to also make it compile when using “Build” on the native platform. For that, you would have to conditionally define a main function as shown.
but here print->print(char_array_var); the Program conuter gets lost in the Nirvana
any clue how to print a Message to the Terminal window, would be nice by the way
Sorry I did not wait the Text Output with printf comes on the Debug Console
So we have to wait until the Program finished the Code. Thank yo for helping.