You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
because it's a global varible, and the real definition is in seatest.c 。 if use seatest in c++, every file who include the seatest.h, will define the seatest_simple_test_result again。and will result the compile error like this:
duplicate symbol _seatest_simple_test_result in:
/var/folders/wy/br32jzv15nqgy1xvn05r4gc80000gn/T/seatest-57864d.o
/var/folders/wy/br32jzv15nqgy1xvn05r4gc80000gn/T/test_main-339523.o
The text was updated successfully, but these errors were encountered:
AdriJD
added a commit
to AdriJD/ksw
that referenced
this issue
Oct 24, 2020
in seatest.hpp 29 ,seatest_simple_test_result should defined more safer like this:
extern void (seatest_simple_test_result)(int passed, char reason, const char* function, unsigned int line);
because it's a global varible, and the real definition is in seatest.c 。 if use seatest in c++, every file who include the seatest.h, will define the seatest_simple_test_result again。and will result the compile error like this:
duplicate symbol _seatest_simple_test_result in:
/var/folders/wy/br32jzv15nqgy1xvn05r4gc80000gn/T/seatest-57864d.o
/var/folders/wy/br32jzv15nqgy1xvn05r4gc80000gn/T/test_main-339523.o
The text was updated successfully, but these errors were encountered: