Hi, this is the first time I'm using this lib, and I'm also a newbie in the Arduino world, so maybe I missed something, but I got errors to the .h files while compiling.
These were the errors:
Arduino: 1.8.19 (Windows 8.1), Board: "ESP32 Wrover Module, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), QIO, 80MHz, 921600, None"
In file included from C:\Users\the\folder\system\AUnit.h:65:0,
from C:\Users\the\folder\system\my_test.ino:4:
C:\Users\the\folder\system\aunit\TestMacros.h:59:7: error: redefinition of 'class test_correct'
C:\Users\the\folder\system\aunit\TestMacros.h:56:37: note: in expansion of macro 'TEST1'
C:\Users\the\folder\system\aunit\TestMacros.h:54:5: note: in expansion of macro 'GET_TEST'
C:\Users\the\folder\system\my_test.ino:18:1: note: in expansion of macro 'test'
C:\Users\the\folder\system\aunit\TestMacros.h:59:7: error: previous definition of 'class test_correct'
C:\Users\the\folder\system\aunit\TestMacros.h:56:37: note: in expansion of macro 'TEST1'
C:\Users\the\folder\system\aunit\TestMacros.h:54:5: note: in expansion of macro 'GET_TEST'
C:\Users\the\folder\system\my_test.ino:11:1: note: in expansion of macro 'test'
C:\Users\the\folder\system\aunit\TestMacros.h:63:3: error: conflicting declaration 'int test_correct_instance'
C:\Users\the\folder\system\aunit\TestMacros.h:56:37: note: in expansion of macro 'TEST1'
C:\Users\the\folder\system\aunit\TestMacros.h:54:5: note: in expansion of macro 'GET_TEST'
C:\Users\the\folder\system\my_test.ino:18:1: note: in expansion of macro 'test'
C:\Users\the\folder\system\aunit\TestMacros.h:63:3: note: previous declaration as 'test_correct test_correct_instance'
C:\Users\the\folder\system\aunit\TestMacros.h:56:37: note: in expansion of macro 'TEST1'
C:\Users\the\folder\system\aunit\TestMacros.h:54:5: note: in expansion of macro 'GET_TEST'
C:\Users\the\folder\system\my_test.ino:11:1: note: in expansion of macro 'test'
C:\Users\the\folder\system\aunit\TestMacros.h:64:1: error: redefinition of 'test_correct::test_correct()'
C:\Users\the\folder\system\aunit\TestMacros.h:56:37: note: in expansion of macro 'TEST1'
C:\Users\the\folder\system\aunit\TestMacros.h:54:5: note: in expansion of macro 'GET_TEST'
C:\Users\the\folder\system\my_test.ino:18:1: note: in expansion of macro 'test'
C:\Users\the\folder\system\aunit\TestMacros.h:64:1: note: 'test_correct::test_correct()' previously defined here
C:\Users\the\folder\system\aunit\TestMacros.h:56:37: note: in expansion of macro 'TEST1'
C:\Users\the\folder\system\aunit\TestMacros.h:54:5: note: in expansion of macro 'GET_TEST'
C:\Users\the\folder\system\my_test.ino:11:1: note: in expansion of macro 'test'
C:\Users\the\folder\system\aunit\TestMacros.h:67:6: error: redefinition of 'void test_correct::once()'
C:\Users\the\folder\system\aunit\TestMacros.h:56:37: note: in expansion of macro 'TEST1'
C:\Users\the\folder\system\aunit\TestMacros.h:54:5: note: in expansion of macro 'GET_TEST'
C:\Users\the\folder\system\my_test.ino:18:1: note: in expansion of macro 'test'
C:\Users\the\folder\system\aunit\TestMacros.h:67:6: note: 'virtual void test_correct::once()' previously defined here
C:\Users\the\folder\system\aunit\TestMacros.h:56:37: note: in expansion of macro 'TEST1'
C:\Users\the\folder\system\aunit\TestMacros.h:54:5: note: in expansion of macro 'GET_TEST'
C:\Users\the\folder\system\my_test.ino:11:1: note: in expansion of macro 'test'
C:\Users\the\folder\system\aunit\TestMacros.h:59:7: error: redefinition of 'class test_correct'
C:\Users\the\folder\system\aunit\TestMacros.h:56:37: note: in expansion of macro 'TEST1'
C:\Users\the\folder\system\aunit\TestMacros.h:54:5: note: in expansion of macro 'GET_TEST'
C:\Users\the\folder\system\my_test.ino:29:1: note: in expansion of macro 'test'
C:\Users\the\folder\system\aunit\TestMacros.h:59:7: error: previous definition of 'class test_correct'
C:\Users\the\folder\system\aunit\TestMacros.h:56:37: note: in expansion of macro 'TEST1'
C:\Users\the\folder\system\aunit\TestMacros.h:54:5: note: in expansion of macro 'GET_TEST'
C:\Users\the\folder\system\my_test.ino:11:1: note: in expansion of macro 'test'
C:\Users\the\folder\system\aunit\TestMacros.h:63:3: error: conflicting declaration 'int test_correct_instance'
C:\Users\the\folder\system\aunit\TestMacros.h:56:37: note: in expansion of macro 'TEST1'
C:\Users\the\folder\system\aunit\TestMacros.h:54:5: note: in expansion of macro 'GET_TEST'
C:\Users\the\folder\system\my_test.ino:29:1: note: in expansion of macro 'test'
C:\Users\the\folder\system\aunit\TestMacros.h:63:3: note: previous declaration as 'test_correct test_correct_instance'
C:\Users\the\folder\system\aunit\TestMacros.h:56:37: note: in expansion of macro 'TEST1'
C:\Users\the\folder\system\aunit\TestMacros.h:54:5: note: in expansion of macro 'GET_TEST'
C:\Users\the\folder\system\my_test.ino:11:1: note: in expansion of macro 'test'
C:\Users\the\folder\system\aunit\TestMacros.h:64:1: error: redefinition of 'test_correct::test_correct()'
C:\Users\the\folder\system\aunit\TestMacros.h:56:37: note: in expansion of macro 'TEST1'
C:\Users\the\folder\system\aunit\TestMacros.h:54:5: note: in expansion of macro 'GET_TEST'
C:\Users\the\folder\system\my_test.ino:29:1: note: in expansion of macro 'test'
C:\Users\the\folder\system\aunit\TestMacros.h:64:1: note: 'test_correct::test_correct()' previously defined here
C:\Users\the\folder\system\aunit\TestMacros.h:56:37: note: in expansion of macro 'TEST1'
C:\Users\the\folder\system\aunit\TestMacros.h:54:5: note: in expansion of macro 'GET_TEST'
C:\Users\the\folder\system\my_test.ino:11:1: note: in expansion of macro 'test'
C:\Users\the\folder\system\aunit\TestMacros.h:67:6: error: redefinition of 'void test_correct::once()'
C:\Users\the\folder\system\aunit\TestMacros.h:56:37: note: in expansion of macro 'TEST1'
C:\Users\the\folder\system\aunit\TestMacros.h:54:5: note: in expansion of macro 'GET_TEST'
C:\Users\the\folder\system\my_test.ino:29:1: note: in expansion of macro 'test'
C:\Users\the\folder\system\aunit\TestMacros.h:67:6: note: 'virtual void test_correct::once()' previously defined here
C:\Users\the\folder\system\aunit\TestMacros.h:56:37: note: in expansion of macro 'TEST1'
C:\Users\the\folder\system\aunit\TestMacros.h:54:5: note: in expansion of macro 'GET_TEST'
C:\Users\the\folder\system\my_test.ino:11:1: note: in expansion of macro 'test'
C:\Users\the\folder\system\aunit\TestMacros.h:59:7: error: redefinition of 'class test_correct'
C:\Users\the\folder\system\aunit\TestMacros.h:56:37: note: in expansion of macro 'TEST1'
C:\Users\the\folder\system\aunit\TestMacros.h:54:5: note: in expansion of macro 'GET_TEST'
C:\Users\the\folder\system\my_test.ino:40:1: note: in expansion of macro 'test'
C:\Users\the\folder\system\aunit\TestMacros.h:59:7: error: previous definition of 'class test_correct'
C:\Users\the\folder\system\aunit\TestMacros.h:56:37: note: in expansion of macro 'TEST1'
C:\Users\the\folder\system\aunit\TestMacros.h:54:5: note: in expansion of macro 'GET_TEST'
C:\Users\the\folder\system\my_test.ino:11:1: note: in expansion of macro 'test'
C:\Users\the\folder\system\aunit\TestMacros.h:63:3: error: conflicting declaration 'int test_correct_instance'
C:\Users\the\folder\system\aunit\TestMacros.h:56:37: note: in expansion of macro 'TEST1'
C:\Users\the\folder\system\aunit\TestMacros.h:54:5: note: in expansion of macro 'GET_TEST'
C:\Users\the\folder\system\my_test.ino:40:1: note: in expansion of macro 'test'
C:\Users\the\folder\system\aunit\TestMacros.h:63:3: note: previous declaration as 'test_correct test_correct_instance'
C:\Users\the\folder\system\aunit\TestMacros.h:56:37: note: in expansion of macro 'TEST1'
C:\Users\the\folder\system\aunit\TestMacros.h:54:5: note: in expansion of macro 'GET_TEST'
C:\Users\the\folder\system\my_test.ino:11:1: note: in expansion of macro 'test'
C:\Users\the\folder\system\aunit\TestMacros.h:64:1: error: redefinition of 'test_correct::test_correct()'
C:\Users\the\folder\system\aunit\TestMacros.h:56:37: note: in expansion of macro 'TEST1'
C:\Users\the\folder\system\aunit\TestMacros.h:54:5: note: in expansion of macro 'GET_TEST'
C:\Users\the\folder\system\my_test.ino:40:1: note: in expansion of macro 'test'
C:\Users\the\folder\system\aunit\TestMacros.h:64:1: note: 'test_correct::test_correct()' previously defined here
C:\Users\the\folder\system\aunit\TestMacros.h:56:37: note: in expansion of macro 'TEST1'
C:\Users\the\folder\system\aunit\TestMacros.h:54:5: note: in expansion of macro 'GET_TEST'
C:\Users\the\folder\system\my_test.ino:11:1: note: in expansion of macro 'test'
C:\Users\the\folder\system\aunit\TestMacros.h:67:6: error: redefinition of 'void test_correct::once()'
C:\Users\the\folder\system\aunit\TestMacros.h:56:37: note: in expansion of macro 'TEST1'
C:\Users\the\folder\system\aunit\TestMacros.h:54:5: note: in expansion of macro 'GET_TEST'
C:\Users\the\folder\system\my_test.ino:40:1: note: in expansion of macro 'test'
C:\Users\the\folder\system\aunit\TestMacros.h:67:6: note: 'virtual void test_correct::once()' previously defined here
C:\Users\the\folder\system\aunit\TestMacros.h:56:37: note: in expansion of macro 'TEST1'
C:\Users\the\folder\system\aunit\TestMacros.h:54:5: note: in expansion of macro 'GET_TEST'
C:\Users\the\folder\system\my_test.ino:11:1: note: in expansion of macro 'test'
C:\Users\the\folder\system\aunit\TestMacros.h:59:7: error: redefinition of 'class test_correct'
C:\Users\the\folder\system\aunit\TestMacros.h:56:37: note: in expansion of macro 'TEST1'
C:\Users\the\folder\system\aunit\TestMacros.h:54:5: note: in expansion of macro 'GET_TEST'
C:\Users\the\folder\system\my_test.ino:50:1: note: in expansion of macro 'test'
C:\Users\the\folder\system\aunit\TestMacros.h:59:7: error: previous definition of 'class test_correct'
C:\Users\the\folder\system\aunit\TestMacros.h:56:37: note: in expansion of macro 'TEST1'
C:\Users\the\folder\system\aunit\TestMacros.h:54:5: note: in expansion of macro 'GET_TEST'
C:\Users\the\folder\system\my_test.ino:11:1: note: in expansion of macro 'test'
C:\Users\the\folder\system\aunit\TestMacros.h:63:3: error: conflicting declaration 'int test_correct_instance'
C:\Users\the\folder\system\aunit\TestMacros.h:56:37: note: in expansion of macro 'TEST1'
C:\Users\the\folder\system\aunit\TestMacros.h:54:5: note: in expansion of macro 'GET_TEST'
C:\Users\the\folder\system\my_test.ino:50:1: note: in expansion of macro 'test'
C:\Users\the\folder\system\aunit\TestMacros.h:63:3: note: previous declaration as 'test_correct test_correct_instance'
C:\Users\the\folder\system\aunit\TestMacros.h:56:37: note: in expansion of macro 'TEST1'
C:\Users\the\folder\system\aunit\TestMacros.h:54:5: note: in expansion of macro 'GET_TEST'
C:\Users\the\folder\system\my_test.ino:11:1: note: in expansion of macro 'test'
C:\Users\the\folder\system\aunit\TestMacros.h:64:1: error: redefinition of 'test_correct::test_correct()'
C:\Users\the\folder\system\aunit\TestMacros.h:56:37: note: in expansion of macro 'TEST1'
C:\Users\the\folder\system\aunit\TestMacros.h:54:5: note: in expansion of macro 'GET_TEST'
C:\Users\the\folder\system\my_test.ino:50:1: note: in expansion of macro 'test'
C:\Users\the\folder\system\aunit\TestMacros.h:64:1: note: 'test_correct::test_correct()' previously defined here
C:\Users\the\folder\system\aunit\TestMacros.h:56:37: note: in expansion of macro 'TEST1'
C:\Users\the\folder\system\aunit\TestMacros.h:54:5: note: in expansion of macro 'GET_TEST'
C:\Users\the\folder\system\my_test.ino:11:1: note: in expansion of macro 'test'
C:\Users\the\folder\system\aunit\TestMacros.h:67:6: error: redefinition of 'void test_correct::once()'
C:\Users\the\folder\system\aunit\TestMacros.h:56:37: note: in expansion of macro 'TEST1'
C:\Users\the\folder\system\aunit\TestMacros.h:54:5: note: in expansion of macro 'GET_TEST'
C:\Users\the\folder\system\my_test.ino:50:1: note: in expansion of macro 'test'
C:\Users\the\folder\system\aunit\TestMacros.h:67:6: note: 'virtual void test_correct::once()' previously defined here
C:\Users\the\folder\system\aunit\TestMacros.h:56:37: note: in expansion of macro 'TEST1'
C:\Users\the\folder\system\aunit\TestMacros.h:54:5: note: in expansion of macro 'GET_TEST'
C:\Users\the\folder\system\my_test.ino:11:1: note: in expansion of macro 'test'
C:\Users\the\folder\system\aunit\TestMacros.h:59:7: error: redefinition of 'class test_correct'
C:\Users\the\folder\system\aunit\TestMacros.h:56:37: note: in expansion of macro 'TEST1'
C:\Users\the\folder\system\aunit\TestMacros.h:54:5: note: in expansion of macro 'GET_TEST'
C:\Users\the\folder\system\my_test.ino:60:1: note: in expansion of macro 'test'
C:\Users\the\folder\system\aunit\TestMacros.h:59:7: error: previous definition of 'class test_correct'
C:\Users\the\folder\system\aunit\TestMacros.h:56:37: note: in expansion of macro 'TEST1'
C:\Users\the\folder\system\aunit\TestMacros.h:54:5: note: in expansion of macro 'GET_TEST'
C:\Users\the\folder\system\my_test.ino:11:1: note: in expansion of macro 'test'
C:\Users\the\folder\system\aunit\TestMacros.h:63:3: error: conflicting declaration 'int test_correct_instance'
C:\Users\the\folder\system\aunit\TestMacros.h:56:37: note: in expansion of macro 'TEST1'
C:\Users\the\folder\system\aunit\TestMacros.h:54:5: note: in expansion of macro 'GET_TEST'
C:\Users\the\folder\system\my_test.ino:60:1: note: in expansion of macro 'test'
C:\Users\the\folder\system\aunit\TestMacros.h:63:3: note: previous declaration as 'test_correct test_correct_instance'
C:\Users\the\folder\system\aunit\TestMacros.h:56:37: note: in expansion of macro 'TEST1'
C:\Users\the\folder\system\aunit\TestMacros.h:54:5: note: in expansion of macro 'GET_TEST'
C:\Users\the\folder\system\my_test.ino:11:1: note: in expansion of macro 'test'
C:\Users\the\folder\system\aunit\TestMacros.h:64:1: error: redefinition of 'test_correct::test_correct()'
C:\Users\the\folder\system\aunit\TestMacros.h:56:37: note: in expansion of macro 'TEST1'
C:\Users\the\folder\system\aunit\TestMacros.h:54:5: note: in expansion of macro 'GET_TEST'
C:\Users\the\folder\system\my_test.ino:60:1: note: in expansion of macro 'test'
C:\Users\the\folder\system\aunit\TestMacros.h:64:1: note: 'test_correct::test_correct()' previously defined here
C:\Users\the\folder\system\aunit\TestMacros.h:56:37: note: in expansion of macro 'TEST1'
C:\Users\the\folder\system\aunit\TestMacros.h:54:5: note: in expansion of macro 'GET_TEST'
C:\Users\the\folder\system\my_test.ino:11:1: note: in expansion of macro 'test'
C:\Users\the\folder\system\aunit\TestMacros.h:67:6: error: redefinition of 'void test_correct::once()'
C:\Users\the\folder\system\aunit\TestMacros.h:56:37: note: in expansion of macro 'TEST1'
C:\Users\the\folder\system\aunit\TestMacros.h:54:5: note: in expansion of macro 'GET_TEST'
C:\Users\the\folder\system\my_test.ino:60:1: note: in expansion of macro 'test'
C:\Users\the\folder\system\aunit\TestMacros.h:67:6: note: 'virtual void test_correct::once()' previously defined here
C:\Users\the\folder\system\aunit\TestMacros.h:56:37: note: in expansion of macro 'TEST1'
C:\Users\the\folder\system\aunit\TestMacros.h:54:5: note: in expansion of macro 'GET_TEST'
C:\Users\the\folder\system\my_test.ino:11:1: note: in expansion of macro 'test'
C:\Users\the\folder\system\aunit\TestMacros.h:59:7: error: redefinition of 'class test_correct'
C:\Users\the\folder\system\aunit\TestMacros.h:56:37: note: in expansion of macro 'TEST1'
C:\Users\the\folder\system\aunit\TestMacros.h:54:5: note: in expansion of macro 'GET_TEST'
C:\Users\the\folder\system\my_test.ino:71:1: note: in expansion of macro 'test'
C:\Users\the\folder\system\aunit\TestMacros.h:59:7: error: previous definition of 'class test_correct'
C:\Users\the\folder\system\aunit\TestMacros.h:56:37: note: in expansion of macro 'TEST1'
C:\Users\the\folder\system\aunit\TestMacros.h:54:5: note: in expansion of macro 'GET_TEST'
C:\Users\the\folder\system\my_test.ino:11:1: note: in expansion of macro 'test'
C:\Users\the\folder\system\aunit\TestMacros.h:63:3: error: conflicting declaration 'int test_correct_instance'
C:\Users\the\folder\system\aunit\TestMacros.h:56:37: note: in expansion of macro 'TEST1'
C:\Users\the\folder\system\aunit\TestMacros.h:54:5: note: in expansion of macro 'GET_TEST'
C:\Users\the\folder\system\my_test.ino:71:1: note: in expansion of macro 'test'
C:\Users\the\folder\system\aunit\TestMacros.h:63:3: note: previous declaration as 'test_correct test_correct_instance'
C:\Users\the\folder\system\aunit\TestMacros.h:56:37: note: in expansion of macro 'TEST1'
C:\Users\the\folder\system\aunit\TestMacros.h:54:5: note: in expansion of macro 'GET_TEST'
C:\Users\the\folder\system\my_test.ino:11:1: note: in expansion of macro 'test'
C:\Users\the\folder\system\aunit\TestMacros.h:64:1: error: redefinition of 'test_correct::test_correct()'
C:\Users\the\folder\system\aunit\TestMacros.h:56:37: note: in expansion of macro 'TEST1'
C:\Users\the\folder\system\aunit\TestMacros.h:54:5: note: in expansion of macro 'GET_TEST'
C:\Users\the\folder\system\my_test.ino:71:1: note: in expansion of macro 'test'
C:\Users\the\folder\system\aunit\TestMacros.h:64:1: note: 'test_correct::test_correct()' previously defined here
C:\Users\the\folder\system\aunit\TestMacros.h:56:37: note: in expansion of macro 'TEST1'
C:\Users\the\folder\system\aunit\TestMacros.h:54:5: note: in expansion of macro 'GET_TEST'
C:\Users\the\folder\system\my_test.ino:11:1: note: in expansion of macro 'test'
C:\Users\the\folder\system\aunit\TestMacros.h:67:6: error: redefinition of 'void test_correct::once()'
C:\Users\the\folder\system\aunit\TestMacros.h:56:37: note: in expansion of macro 'TEST1'
C:\Users\the\folder\system\aunit\TestMacros.h:54:5: note: in expansion of macro 'GET_TEST'
C:\Users\the\folder\system\my_test.ino:71:1: note: in expansion of macro 'test'
C:\Users\the\folder\system\aunit\TestMacros.h:67:6: note: 'virtual void test_correct::once()' previously defined here
C:\Users\the\folder\system\aunit\TestMacros.h:56:37: note: in expansion of macro 'TEST1'
C:\Users\the\folder\system\aunit\TestMacros.h:54:5: note: in expansion of macro 'GET_TEST'
C:\Users\the\folder\system\my_test.ino:11:1: note: in expansion of macro 'test'
exit status 1
Error compiling for board ESP32 Wrover Module.
Hi, this is the first time I'm using this lib, and I'm also a newbie in the Arduino world, so maybe I missed something, but I got errors to the
.h
files while compiling.These were the errors:
How can I solve this issue?