[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

duplicate symbol _seatest_simple_test_result #22

Open
oskycar opened this issue Apr 19, 2018 · 0 comments · May be fixed by #26
Open

duplicate symbol _seatest_simple_test_result #22

oskycar opened this issue Apr 19, 2018 · 0 comments · May be fixed by #26

Comments

@oskycar
Copy link
oskycar commented Apr 19, 2018

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

@JiaT75 JiaT75 linked a pull request Nov 12, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant