C unit testing with multiple test files #3605
Unanswered
student868
asked this question in
Community Help
Replies: 1 comment 2 replies
-
Linker Tools Error LNK2005
Or in general if you define your functions in header files and include them in multiple object files then you're gonna get this error anyways. Could you please post the code that is creating that error? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am trying to use multiple test files for C code.
I include the same headers on both files inside extern block but keep getting LNK2005 error (on one file I include also the .c files because it won't compile otherwise).
can someone have an idea why? (I do have guards inside the header files).
Thanks
Beta Was this translation helpful? Give feedback.
All reactions