-
-
Notifications
You must be signed in to change notification settings - Fork 648
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
inlining function defs #111
Comments
Hi there - So glad I hear about another big project using doctest! About your linker errors... doctest is a single header library with 2 parts - the top one is the interface, and the bottom one is the test runner implementation. The definition of So if there are tons of linker errors - I would assume that there are multiple I cannot currently look into the doctest/cmake integration of cereal because I'm currently at work. If you manage to figure it out - let me know! Otherwise I'll check it out in a few hours/days... |
Thanks for your reply and clear explanation - I used the VS2013 project file included by Cereal (not cmake), and indeed this is likely to be a broken setup (related to the way the unit tests within Cereal are organized), which I should be able to fix easily given the above. |
I'm closing this since (I assume) it's not a problem with doctest. |
I am compiling the serialization library Cereal, which relies on doctest for its unit testing, using VS2017. I get loads of linking errors due to multiple inclusions of the doctest functions, for example, for the function definition of
doctest::Approx::Approx(double)
(and many others). Defining these asinline
would resolve these. Is there a reason why this currently not the case?The text was updated successfully, but these errors were encountered: